|
JubeatPlus 3.9.11
|
A promoted pack or genre, with its banner artwork and, for a pack, its sample list. More...
#include <StorePromotion.h>


Instance Methods | |
| (instancetype) | - initWithPackInfo:imageURL:sampleURL: |
| Builds a pack promotion and picks which of its samples to play. | |
| (instancetype) | - initWithGenreIndex:imageURL: |
| Builds a genre promotion. | |
| (nullable NSString *) | - getSampleURL |
| The chosen sample's audio address. | |
| (nullable NSString *) | - getSampleName |
| The chosen sample's track name. | |
Properties | |
| NSUInteger | genreIndex |
| The promoted genre's index. | |
| StorePackInfo * | packInfo |
| The promoted pack. | |
| NSString * | imageURL |
| The banner artwork's address, as text. | |
| NSArray * | sampleList |
| The pack's sample tracks, one dictionary each. | |
A promoted pack or genre, with its banner artwork and, for a pack, its sample list.
| - (NSString *) getSampleName |
The chosen sample's track name.
Unlike -getSampleURL this one has no nil guard on the sample list; see TYPES_PENDING.md.
| - (NSString *) getSampleURL |
The chosen sample's audio address.
| - (instancetype) initWithGenreIndex: | (NSUInteger) | genreIndex | |
| imageURL: | (nullable NSString *) | imageURL |
Builds a genre promotion.
A genre promotion has no samples: both _packInfo and _sampleList are cleared and the slot is set to zero.
| genreIndex | The promoted genre. |
| imageURL | The banner artwork's address. |
| - (instancetype) initWithPackInfo: | (nullable StorePackInfo *) | packInfo | |
| imageURL: | (nullable NSString *) | imageURL | |
| sampleURL: | (nullable NSArray *) | sampleURL |
Builds a pack promotion and picks which of its samples to play.
The sample slot is chosen once here, with rand() , and never changes for the promotion's lifetime — so the same track plays every time until the promotion is rebuilt.
| packInfo | The promoted pack. |
| imageURL | The banner artwork's address. |
| sampleURL | The samples. Despite the name this is the sample list, an array of dictionaries, and it is what _sampleList holds. |
|
readnonatomicassign |
The promoted genre's index.
Zero for a pack promotion.
|
readnonatomicassign |
The banner artwork's address, as text.
|
readnonatomicassign |
The promoted pack.
Nil for a genre promotion.
|
readnonatomicassign |
The pack's sample tracks, one dictionary each.
Nil for a genre promotion.