14#import <Foundation/Foundation.h>
15#import <UIKit/UIKit.h>
19NS_ASSUME_NONNULL_BEGIN
29@property(nonatomic, readonly, nullable) NSString *
genreName;
34@property(nonatomic, readonly) NSUInteger
genreID;
61@property(nonatomic, readonly, nullable) UIColor *
genreColor;
80- (nullable UIColor *)getColor:(nullable NSString *)colorString alpha:(
float)alpha;
89- (instancetype)initWithName:(nullable NSString *)name genreID:(NSUInteger)genreID;
101- (instancetype)initWithName:(nullable NSString *)name
102 genreID:(NSUInteger)genreID
103 imgURL:(nullable NSString *)imgURL
104 col:(nullable NSString *)col;
112- (BOOL)isExist:(nullable NSString *)string;
120- (void)setExtendInfo:(nullable NSDictionary *)info;
142- (nullable
StorePackInfo *)packInfoForIndex:(NSUInteger)index;
152 step:(NSUInteger)step
153 hasNext:(BOOL)hasNext;
160- (void)updateGenreInfo:(nullable NSDictionary *)info;
A pack's identity, name, price, store flags, and track list.
Definition StorePackInfo.h:18
A store model for a single pack-list genre.
Definition StorePackListGenre.h:25
UIColor * genreColor
The banner tile's border colour.
Definition StorePackListGenre.h:61
NSString * genreName
The genre's display name.
Definition StorePackListGenre.h:29
NSString * genreImageURL
The banner tile's artwork address, distinct from genreBgImageURL.
Definition StorePackListGenre.h:55
UIColor * genreBGColor
The heading's backdrop colour.
Definition StorePackListGenre.h:66
NSUInteger genreID
The genre identifier.
Definition StorePackListGenre.h:34
BOOL packlistContinued
Whether the server reported a further catalogue page for this genre.
Definition StorePackListGenre.h:39
NSArray< StorePackInfo * > * packList()
The accumulated packs for this genre.
Definition StorePackListGenre.m:137
NSUInteger packCount()
The number of packs accumulated for this genre.
Definition StorePackListGenre.m:132
NSUInteger numFetchedPack
The number of packs already fetched for this genre, used as the next page offset.
Definition StorePackListGenre.h:44
NSString * genreComment
The genre's description.
Definition StorePackListGenre.h:49
NSString * genreBgImageURL
The heading banner's address.
Definition StorePackListGenre.h:71