JubeatPlus 3.9.11
Loading...
Searching...
No Matches
StorePackInfo.h
Go to the documentation of this file.
1
8
9#import <Foundation/Foundation.h>
10#import <StoreKit/StoreKit.h>
11
12NS_ASSUME_NONNULL_BEGIN
13
17@interface StorePackInfo : NSObject
18
23@property(nonatomic, readonly) int packID;
25@property(nonatomic, readonly) BOOL isNew;
27@property(nonatomic, readonly) BOOL hasExtend;
29@property(nonatomic, readonly, nullable) NSString *artworkURL;
31@property(nonatomic, readonly, nullable) NSString *packName;
33@property(nonatomic, readonly, nullable) NSString *comment;
35@property(nonatomic, readonly, nullable) NSString *shortComment;
37@property(nonatomic, readonly, nullable) NSString *copyright;
39@property(nonatomic, readonly, nullable) NSString *linkURL;
41@property(nonatomic, readonly, nullable) NSString *linkTitle;
43@property(nonatomic, readonly, nullable) NSArray *musicInfos;
45@property(nonatomic, readonly, nullable) SKProduct *product;
47@property(nonatomic, readonly, nullable) NSDecimalNumber *regularPriceJPY;
48
53@property(nonatomic, readonly, nullable) NSString *priceString;
58@property(nonatomic, readonly, nullable) NSAttributedString *attributedPriceString;
59
67- (instancetype)initWithDictionary:(nullable NSDictionary *)dictionary
68 product:(nullable SKProduct *)product;
69
79- (nullable NSString *)getArtworkURL:(nullable NSDictionary *)dictionary;
80
86- (void)setPackInfo:(nullable NSDictionary *)dictionary;
87
94- (BOOL)setPackDetailInfo:(nullable NSDictionary *)dictionary;
95
102- (BOOL)setMusicInfo:(nullable NSArray *)musicList;
103
104@end
105
106NS_ASSUME_NONNULL_END
107
108// code: language=Objective-C
109// kate: hl Objective-C;
110// vim: set ft=objc :
A pack's identity, name, price, store flags, and track list.
Definition StorePackInfo.h:18
int packID
The pack's identifier.
Definition StorePackInfo.h:23
NSString * artworkURL
The pack artwork's address.
Definition StorePackInfo.h:29
NSAttributedString * attributedPriceString
The price styled for display; a struck-through regular price precedes a discounted price.
Definition StorePackInfo.m:95
NSString * linkURL
The related-site link URL string.
Definition StorePackInfo.h:39
NSString * packName
The pack's display name.
Definition StorePackInfo.h:31
NSString * shortComment
The pack's one-line comment.
Definition StorePackInfo.h:35
SKProduct * product
The StoreKit product backing the pack.
Definition StorePackInfo.h:45
NSString * linkTitle
The related-site link title.
Definition StorePackInfo.h:41
NSDecimalNumber * regularPriceJPY
The regular (pre-discount) yen price.
Definition StorePackInfo.h:47
NSString * priceString
The formatted price string, or nil when there is no product.
Definition StorePackInfo.m:87
BOOL hasExtend
Whether to show the "extend" marker.
Definition StorePackInfo.h:27
BOOL isNew
Whether to show the "new" marker.
Definition StorePackInfo.h:25
NSArray * musicInfos
The pack's tracks, each a StoreMusicInfo.
Definition StorePackInfo.h:43
NSString * copyright
The pack's copyright line.
Definition StorePackInfo.h:37
NSString * comment
The pack's long description.
Definition StorePackInfo.h:33