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

A store model for a single pack-list genre. More...

#include <StorePackListGenre.h>

Inheritance diagram for StorePackListGenre:
Collaboration diagram for StorePackListGenre:

Instance Methods

(nullable UIColor *) - getColor:alpha:
 Parse a slash-separated "red/green/blue" byte triple into a colour with the given alpha.
(instancetype) - initWithName:genreID:
 Build a genre with the given display name and identifier.
(instancetype) - initWithName:genreID:imgURL:col:
 Build a genre with a display name, identifier, banner image address, and colour string.
(BOOL) - isExist:
 Whether the string is present and not empty.
(void) - setExtendInfo:
 Fill the genre's banner image, colours, description, and heading image from an extend-info dictionary, keeping any field whose key is absent or empty.
(NSUInteger) - packCount
 The number of packs accumulated for this genre.
(NSArray< StorePackInfo * > *) - packList
 The accumulated packs for this genre.
(nullable StorePackInfo *) - packInfoForIndex:
 The pack at the given index, or nil when out of range.
(void) - updateList:step:hasNext:
 Append a fetched page of packs to the genre.
(void) - updateGenreInfo:
 Set the genre description from a dictionary's Comment entry when present.
(void) - copyGenreData:
 Copy genre data from another genre.

Properties

NSString * genreName
 The genre's display name.
NSUInteger genreID
 The genre identifier.
BOOL packlistContinued
 Whether the server reported a further catalogue page for this genre.
NSUInteger numFetchedPack
 The number of packs already fetched for this genre, used as the next page offset.
NSString * genreComment
 The genre's description.
NSString * genreImageURL
 The banner tile's artwork address, distinct from genreBgImageURL.
UIColor * genreColor
 The banner tile's border colour.
UIColor * genreBGColor
 The heading's backdrop colour.
NSString * genreBgImageURL
 The heading banner's address.

Detailed Description

A store model for a single pack-list genre.

Method Documentation

◆ copyGenreData:

- (void) copyGenreData: (nullable StorePackListGenre *) genre

Copy genre data from another genre.

A no-op in the shipped binary.

Parameters
genreThe genre to copy from.
Ghidra address:
0x1b0d80

◆ getColor:alpha:

- (nullable UIColor *) getColor: (nullable NSString *) colorString
alpha: (float) alpha 

Parse a slash-separated "red/green/blue" byte triple into a colour with the given alpha.

Parameters
colorStringThe colour string, expected as three slash-separated 0-255 components.
alphaThe alpha to apply to the parsed colour.
Returns
The parsed colour, or nil when the string is not exactly three components.
Ghidra address:
0x1b0418

◆ initWithName:genreID:

- (instancetype) initWithName: (nullable NSString *) name
genreID: (NSUInteger) genreID 

Build a genre with the given display name and identifier.

Parameters
nameThe genre display name.
genreIDThe genre identifier.
Returns
The initialised genre.
Ghidra address:
0x1b0594

◆ initWithName:genreID:imgURL:col:

- (instancetype) initWithName: (nullable NSString *) name
genreID: (NSUInteger) genreID
imgURL: (nullable NSString *) imgURL
col: (nullable NSString *) col 

Build a genre with a display name, identifier, banner image address, and colour string.

Parameters
nameThe genre display name.
genreIDThe genre identifier.
imgURLThe banner tile artwork address, applied only when non-empty.
colThe slash-separated colour string, applied to genreColor and genreBGColor only when non-empty.
Returns
The initialised genre.
Ghidra address:
0x1b06b8

◆ isExist:

- (BOOL) isExist: (nullable NSString *) string

Whether the string is present and not empty.

Parameters
stringThe string to test.
Returns
YES when the string is non-nil and not equal to the empty string.
Ghidra address:
0x1b08b4

◆ packCount

- (NSUInteger) packCount

The number of packs accumulated for this genre.

Returns
The pack count.
Ghidra address:
0x1b0bc8
Ghidra address:
0x1b0bc8

◆ packInfoForIndex:

- (StorePackInfo *) packInfoForIndex: (NSUInteger) index

The pack at the given index, or nil when out of range.

Parameters
indexThe pack index.
Returns
The pack info, or nil.
Ghidra address:
0x1b0bf0
Ghidra address:
0x1b0bf0

◆ packList

- (NSArray< StorePackInfo * > *) packList

The accumulated packs for this genre.

Returns
The resolved pack-info objects.
Ghidra address:
0x1b0be0
Ghidra address:
0x1b0be0

◆ setExtendInfo:

- (void) setExtendInfo: (nullable NSDictionary *) info

Fill the genre's banner image, colours, description, and heading image from an extend-info dictionary, keeping any field whose key is absent or empty.

Parameters
infoThe extend-info dictionary.
Ghidra address:
0x1b0910

◆ updateGenreInfo:

- (void) updateGenreInfo: (nullable NSDictionary *) info

Set the genre description from a dictionary's Comment entry when present.

Parameters
infoThe genre-info dictionary.
Ghidra address:
0x1b0ce4

◆ updateList:step:hasNext:

- (void) updateList: (nullable NSArray< StorePackInfo * > *) list
step: (NSUInteger) step
hasNext: (BOOL) hasNext 

Append a fetched page of packs to the genre.

Parameters
listThe pack-info objects from the page.
stepThe page size requested, added to numFetchedPack.
hasNextWhether the server reports a further page.
Ghidra address:
0x1b0c5c

Property Documentation

◆ genreColor

- (UIColor*) genreColor
readnonatomicassign

The banner tile's border colour.

Ghidra address:
0x1b0de4

◆ genreImageURL

- (NSString*) genreImageURL
readnonatomicassign

The banner tile's artwork address, distinct from genreBgImageURL.

Ghidra address:
0x1b0dd4

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