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

A store track, including the extended chart it may carry. More...

#include <StoreMusicInfo.h>

Inheritance diagram for StoreMusicInfo:
Collaboration diagram for StoreMusicInfo:

Instance Methods

(instancetype) - initWithDictionary:
 Builds a track from a server dictionary, or returns nil.
(nullable StoreMusicInfo *) - getExtendInfo
 The extended chart, if any.

Properties

int musicID
 The track's identifier.
NSString * name
 The track's title.
NSString * artist
 The performing artist.
NSString * itemURL
 Where to buy the track.
NSString * artworkURL
 The artwork, or nil when the server's value did not pass +[StoreUtil isValidURL:].
NSString * sampleURL
 The preview clip, subject to the same validity test.
NSString * itunesURL
 The iTunes listing, subject to the same validity test.
int lvBas
 The basic chart's level, 1 to 10.
int lvAdv
 The advanced chart's level, 1 to 10.
int lvExt
 The extreme chart's level, 1 to 10.
unsigned int holdFlag
 Whether the track is held back from sale.
unsigned int extendFlag
 What the extended chart may be played with.
unsigned int extendMusicID
 The extended chart's own track identifier.
NSString * extendItemURL
 Where to buy the extended chart.
StoreMusicInfo * extendInfo
 The extended chart as a track in its own right.

Detailed Description

A store track, including the extended chart it may carry.

Method Documentation

◆ getExtendInfo

- (StoreMusicInfo *) getExtendInfo

The extended chart, if any.

A one-instruction tail call to the extendInfo getter, so it is an alias rather than a computation. Kept because the binary ships it as a separate selector.

Ghidra address:
0xcf650
Ghidra address:
0xcf650

◆ initWithDictionary:

- (instancetype) initWithDictionary: (NSDictionary *) dictionary

Builds a track from a server dictionary, or returns nil.

A genuine initialiser, unlike the identically named methods on the challenge-mission classes: it calls -init and returns instancetype. It answers nil before doing anything when "ID" is missing or reads below 1.

Parameters
dictionaryThe server's track record.
Ghidra address:
0xceeb0
Ghidra address:
0xceeb0

Property Documentation

◆ artist

- (NSString*) artist
readwritenonatomicstrong

The performing artist.

Wire key "Artist".

◆ extendFlag

- (unsigned int) extendFlag
readnonatomicassign

What the extended chart may be played with.

Wire key "extendFlag".

◆ extendInfo

- (StoreMusicInfo*) extendInfo
readwritenonatomicstrong

The extended chart as a track in its own right.

Built recursively: when extendMusicID is non-zero the initialiser rewrites its own input dictionary and feeds it back through -initWithDictionary:. The nesting stops after one level because the rewritten dictionary has its "extID" removed.

◆ extendItemURL

- (NSString*) extendItemURL
readnonatomicassign

Where to buy the extended chart.

Wire key "extURL".

◆ extendMusicID

- (unsigned int) extendMusicID
readnonatomicassign

The extended chart's own track identifier.

Wire key "extID".

◆ holdFlag

- (unsigned int) holdFlag
readnonatomicassign

Whether the track is held back from sale.

Wire key "holdFlag".

◆ itemURL

- (NSString*) itemURL
readwritenonatomicstrong

Where to buy the track.

Wire key "ItemURL".

◆ itunesURL

- (NSString*) itunesURL
readwritenonatomicstrong

The iTunes listing, subject to the same validity test.

Wire key "iTunesURL".

◆ lvAdv

- (int) lvAdv
readnonatomicassign

The advanced chart's level, 1 to 10.

Wire key "Level", element 1.

◆ lvBas

- (int) lvBas
readnonatomicassign

The basic chart's level, 1 to 10.

Wire key "Level", element 0.

◆ lvExt

- (int) lvExt
readnonatomicassign

The extreme chart's level, 1 to 10.

Wire key "Level", element 2.

◆ musicID

- (int) musicID
readnonatomicassign

The track's identifier.

Wire key "ID"; a value below 1 rejects the whole record.

◆ name

- (NSString*) name
readwritenonatomicstrong

The track's title.

Wire key "Name".

◆ sampleURL

- (NSString*) sampleURL
readwritenonatomicstrong

The preview clip, subject to the same validity test.

Wire key "SampleURL".


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