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

A challenge-mission reward, as sent by the server. More...

#include <ChallengeMissionReward.h>

Inheritance diagram for ChallengeMissionReward:
Collaboration diagram for ChallengeMissionReward:

Instance Methods

(BOOL) - initWithDictionary:
 Fills the object in from a server dictionary.
(NSDictionary *) - getDictionary
 Writes the object back out in the server's format.

Properties

int rewardID
 The reward's identifier.
int itemType
 What kind of item the reward is.
NSString * itemID
 The item's identifier.
NSString * rewardName
 The reward's display name.
NSString * rewardDescription
 The reward's description.
NSString * rewardImageURL
 Where to fetch the reward's image.
NSString * endTime
 When the reward stops being shown.
NSString * version
 The record's version.

Detailed Description

A challenge-mission reward, as sent by the server.

Method Documentation

◆ getDictionary

- (NSDictionary *) getDictionary

Writes the object back out in the server's format.

Note the asymmetry with -initWithDictionary:, which reads its fields from a nested "reward" entry: this returns the eight fields at the top level, so the two are not inverses.

Ghidra address:
0x1ee5a8
Ghidra address:
0x1ee5a8

◆ initWithDictionary:

- (BOOL) initWithDictionary: (NSDictionary *) dictionary

Fills the object in from a server dictionary.

Named like an initialiser but it is not one: it returns BOOL rather than instancetype and never calls -init. It answers NO and changes nothing when the dictionary has no "reward" entry.

Parameters
dictionaryThe server response, whose "reward" entry holds the fields.
Returns
YES when the "reward" entry was present.
Ghidra address:
0x1ee324
Ghidra address:
0x1ee324

Property Documentation

◆ endTime

- (NSString*) endTime
readnonatomicassign

When the reward stops being shown.

Wire key "view_end".

◆ itemID

- (NSString*) itemID
readnonatomicassign

The item's identifier.

Wire key "item_id"; empty string when absent.

◆ itemType

- (int) itemType
readnonatomicassign

What kind of item the reward is.

Wire key "item_type".

◆ rewardDescription

- (NSString*) rewardDescription
readnonatomicassign

The reward's description.

Wire key "description".

◆ rewardID

- (int) rewardID
readnonatomicassign

The reward's identifier.

Wire key "reward_id".

◆ rewardImageURL

- (NSString*) rewardImageURL
readnonatomicassign

Where to fetch the reward's image.

Wire key "image_url".

◆ rewardName

- (NSString*) rewardName
readnonatomicassign

The reward's display name.

Wire key "name".

◆ version

- (NSString*) version
readnonatomicassign

The record's version.

Wire key "version".


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