56 lines
1.4 KiB
Objective-C
56 lines
1.4 KiB
Objective-C
//
|
|
// SBMetadataResult.h
|
|
// Subler
|
|
//
|
|
// Created by Damiano Galassi on 17/02/16.
|
|
//
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class MP42Image;
|
|
@class MP42Metadata;
|
|
|
|
@interface SBMetadataResult : NSObject {
|
|
@private
|
|
NSMutableDictionary<NSString *, id> *_tagsDict;
|
|
|
|
NSMutableArray<MP42Image *> *_artworks;
|
|
|
|
NSArray<NSURL *> *_artworkThumbURLs;
|
|
NSArray<NSURL *> *_artworkFullsizeURLs;
|
|
NSArray<NSString *> *_artworkProviderNames;
|
|
|
|
NSString *_ratingiTunesCode;
|
|
|
|
uint8_t _mediaKind;
|
|
uint8_t _contentRating;
|
|
}
|
|
|
|
- (void)merge:(SBMetadataResult *)aObject;
|
|
|
|
- (void)removeTagForKey:(NSString *)aKey;
|
|
- (void)setTag:(id)value forKey:(NSString *)key;
|
|
|
|
- (nullable id)objectForKeyedSubscript:(NSString *)key;
|
|
- (void)setObject:(id)obj forKeyedSubscript:(NSString *)key;
|
|
|
|
@property (nonatomic, readonly) NSMutableDictionary<NSString *, id> *tags;
|
|
|
|
@property (nonatomic, readwrite) uint8_t mediaKind;
|
|
@property (nonatomic, readwrite) uint8_t contentRating;
|
|
|
|
@property (nonatomic, readonly) NSMutableArray<MP42Image *> *artworks;
|
|
|
|
@property (nonatomic, readwrite, retain, nullable) NSArray<NSURL *> *artworkThumbURLs;
|
|
@property (nonatomic, readwrite, retain, nullable) NSArray<NSURL *> *artworkFullsizeURLs;
|
|
@property (nonatomic ,readwrite, retain, nullable) NSArray<NSString *> *artworkProviderNames;
|
|
|
|
@property (nonatomic, readonly) MP42Metadata *metadata;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|