JubeatPlus 3.9.11
Loading...
Searching...
No Matches
StorePackInfo Class Reference

A pack's identity, name, price, store flags, and track list. More...

#include <StorePackInfo.h>

Inheritance diagram for StorePackInfo:
Collaboration diagram for StorePackInfo:

Instance Methods

(instancetype) - initWithDictionary:product:
 Builds a pack from a store dictionary and its StoreKit product.
(nullable NSString *) - getArtworkURL:
 The best artwork URL for the current device from a pack dictionary.
(void) - setPackInfo:
 Fills the pack from a store list dictionary.
(BOOL) - setPackDetailInfo:
 Fills the pack's detail-only fields from a detail dictionary, keeping any already set.
(BOOL) - setMusicInfo:
 Builds the track list from an array of track dictionaries, unless it is already set.

Properties

int packID
 The pack's identifier.
BOOL isNew
 Whether to show the "new" marker.
BOOL hasExtend
 Whether to show the "extend" marker.
NSString * artworkURL
 The pack artwork's address.
NSString * packName
 The pack's display name.
NSString * comment
 The pack's long description.
NSString * shortComment
 The pack's one-line comment.
NSString * copyright
 The pack's copyright line.
NSString * linkURL
 The related-site link URL string.
NSString * linkTitle
 The related-site link title.
NSArray * musicInfos
 The pack's tracks, each a StoreMusicInfo.
SKProduct * product
 The StoreKit product backing the pack.
NSDecimalNumber * regularPriceJPY
 The regular (pre-discount) yen price.
NSString * priceString
 The formatted price string, or nil when there is no product.
NSAttributedString * attributedPriceString
 The price styled for display; a struck-through regular price precedes a discounted price.

Detailed Description

A pack's identity, name, price, store flags, and track list.

Method Documentation

◆ getArtworkURL:

- (nullable NSString *) getArtworkURL: (nullable NSDictionary *) dictionary

The best artwork URL for the current device from a pack dictionary.

On a Retina pad the HD address is preferred when valid; otherwise the standard address is used, and either way an invalid address yields nil.

Parameters
dictionaryThe pack dictionary.
Returns
The artwork URL string, or nil.
Ghidra address:
0xbdb4c

◆ initWithDictionary:product:

- (instancetype) initWithDictionary: (nullable NSDictionary *) dictionary
product: (nullable SKProduct *) product 

Builds a pack from a store dictionary and its StoreKit product.

Parameters
dictionaryThe store's pack dictionary, or nil to seed only from the product.
productThe StoreKit product, or nil.
Returns
The initialised pack.
Ghidra address:
0xbd4a0

◆ setMusicInfo:

- (BOOL) setMusicInfo: (nullable NSArray *) musicList

Builds the track list from an array of track dictionaries, unless it is already set.

Parameters
musicListThe array of track dictionaries.
Returns
Whether the track list ended up populated.
Ghidra address:
0xbe18c

◆ setPackDetailInfo:

- (BOOL) setPackDetailInfo: (nullable NSDictionary *) dictionary

Fills the pack's detail-only fields from a detail dictionary, keeping any already set.

Parameters
dictionaryThe detail dictionary.
Returns
Whether the track list was populated.
Ghidra address:
0xbdf84

◆ setPackInfo:

- (void) setPackInfo: (nullable NSDictionary *) dictionary

Fills the pack from a store list dictionary.

Parameters
dictionaryThe pack dictionary.
Ghidra address:
0xbdca0

Property Documentation

◆ artworkURL

- (NSString*) artworkURL
readnonatomicassign

The pack artwork's address.

Ghidra address:
0xbe400 (getter)

◆ attributedPriceString

- (NSAttributedString *) attributedPriceString
readnonatomicassign

The price styled for display; a struck-through regular price precedes a discounted price.

Ghidra address:
0xbd6b4 (getter)
Ghidra address:
0xbd6b4

◆ comment

- (NSString*) comment
readnonatomicassign

The pack's long description.

Ghidra address:
0xbe420 (getter)

◆ copyright

- (NSString*) copyright
readnonatomicassign

The pack's copyright line.

Ghidra address:
0xbe440 (getter)

◆ hasExtend

- (BOOL) hasExtend
readnonatomicassign

Whether to show the "extend" marker.

Ghidra address:
0xbe3f0 (getter)

◆ isNew

- (BOOL) isNew
readnonatomicassign

Whether to show the "new" marker.

Ghidra address:
0xbe3e0 (getter)

◆ linkTitle

- (NSString*) linkTitle
readnonatomicassign

The related-site link title.

Ghidra address:
0xbe460 (getter)

◆ linkURL

- (NSString*) linkURL
readnonatomicassign

The related-site link URL string.

Ghidra address:
0xbe450 (getter)

◆ musicInfos

- (NSArray*) musicInfos
readnonatomicassign

The pack's tracks, each a StoreMusicInfo.

Ghidra address:
0xbe470 (getter)

◆ packID

- (int) packID
readnonatomicassign

The pack's identifier.

Four bytes in the metadata, so int.

Ghidra address:
0xbe3d0 (getter)

◆ packName

- (NSString*) packName
readnonatomicassign

The pack's display name.

Ghidra address:
0xbe410 (getter)

◆ priceString

- (NSString *) priceString
readnonatomicassign

The formatted price string, or nil when there is no product.

Ghidra address:
0xbd5ac (getter)
Ghidra address:
0xbd5ac

◆ product

- (SKProduct*) product
readnonatomicassign

The StoreKit product backing the pack.

Ghidra address:
0xbe480 (getter)

◆ regularPriceJPY

- (NSDecimalNumber*) regularPriceJPY
readnonatomicassign

The regular (pre-discount) yen price.

Ghidra address:
0xbe490 (getter)

◆ shortComment

- (NSString*) shortComment
readnonatomicassign

The pack's one-line comment.

Ghidra address:
0xbe430 (getter)

The documentation for this class was generated from the following files: