JubeatPlus 3.9.11
Loading...
Searching...
No Matches
StorePackListGenre.h
Go to the documentation of this file.
1
13
14#import <Foundation/Foundation.h>
15#import <UIKit/UIKit.h>
16
17@class StorePackInfo;
18
19NS_ASSUME_NONNULL_BEGIN
20
24@interface StorePackListGenre : NSObject
25
29@property(nonatomic, readonly, nullable) NSString *genreName;
30
34@property(nonatomic, readonly) NSUInteger genreID;
35
39@property(nonatomic, readonly) BOOL packlistContinued;
40
44@property(nonatomic, readonly) NSUInteger numFetchedPack;
45
49@property(nonatomic, readonly, nullable) NSString *genreComment;
50
55@property(nonatomic, readonly, nullable) NSString *genreImageURL;
56
61@property(nonatomic, readonly, nullable) UIColor *genreColor;
62
66@property(nonatomic, readonly, nullable) UIColor *genreBGColor;
67
71@property(nonatomic, readonly, nullable) NSString *genreBgImageURL;
72
80- (nullable UIColor *)getColor:(nullable NSString *)colorString alpha:(float)alpha;
81
89- (instancetype)initWithName:(nullable NSString *)name genreID:(NSUInteger)genreID;
90
101- (instancetype)initWithName:(nullable NSString *)name
102 genreID:(NSUInteger)genreID
103 imgURL:(nullable NSString *)imgURL
104 col:(nullable NSString *)col;
105
112- (BOOL)isExist:(nullable NSString *)string;
113
120- (void)setExtendInfo:(nullable NSDictionary *)info;
121
127- (NSUInteger)packCount;
128
134- (NSArray<StorePackInfo *> *)packList;
135
142- (nullable StorePackInfo *)packInfoForIndex:(NSUInteger)index;
143
151- (void)updateList:(nullable NSArray<StorePackInfo *> *)list
152 step:(NSUInteger)step
153 hasNext:(BOOL)hasNext;
154
160- (void)updateGenreInfo:(nullable NSDictionary *)info;
161
167- (void)copyGenreData:(nullable StorePackListGenre *)genre;
168
169@end
170
171NS_ASSUME_NONNULL_END
172
173// code: language=Objective-C
174// kate: hl Objective-C;
175// vim: set ft=objc :
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