9#import <Foundation/Foundation.h>
10#import <StoreKit/StoreKit.h>
12NS_ASSUME_NONNULL_BEGIN
23@property(nonatomic, readonly)
int packID;
25@property(nonatomic, readonly) BOOL
isNew;
29@property(nonatomic, readonly, nullable) NSString *
artworkURL;
31@property(nonatomic, readonly, nullable) NSString *
packName;
33@property(nonatomic, readonly, nullable) NSString *
comment;
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;
53@property(nonatomic, readonly, nullable) NSString *
priceString;
67- (instancetype)initWithDictionary:(nullable NSDictionary *)dictionary
68 product:(nullable SKProduct *)product;
79- (nullable NSString *)getArtworkURL:(nullable NSDictionary *)dictionary;
86- (void)setPackInfo:(nullable NSDictionary *)dictionary;
94- (BOOL)setPackDetailInfo:(nullable NSDictionary *)dictionary;
102- (BOOL)setMusicInfo:(nullable NSArray *)musicList;
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