A store model for a single pack-list genre.
More...
#include <StorePackListGenre.h>
|
| (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.
|
|
|
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.
|
A store model for a single pack-list genre.
◆ copyGenreData:
Copy genre data from another genre.
A no-op in the shipped binary.
- Parameters
-
| genre | The 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
-
| colorString | The colour string, expected as three slash-separated 0-255 components. |
| alpha | The 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
-
| name | The genre display name. |
| genreID | The 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
-
| name | The genre display name. |
| genreID | The genre identifier. |
| imgURL | The banner tile artwork address, applied only when non-empty. |
| col | The 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
-
| string | The string to test. |
- Returns
YES when the string is non-nil and not equal to the empty string.
- Ghidra address:
- 0x1b08b4
◆ packCount
The number of packs accumulated for this genre.
- Returns
- The pack count.
- Ghidra address:
- 0x1b0bc8
- Ghidra address:
- 0x1b0bc8
◆ packInfoForIndex:
The pack at the given index, or nil when out of range.
- Parameters
-
- Returns
- The pack info, or
nil.
- Ghidra address:
- 0x1b0bf0
- Ghidra address:
- 0x1b0bf0
◆ 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
-
| info | The 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
-
| info | The 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
-
| list | The pack-info objects from the page. |
| step | The page size requested, added to numFetchedPack. |
| hasNext | Whether the server reports a further page. |
- Ghidra address:
- 0x1b0c5c
◆ genreColor
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: