|
JubeatPlus 3.9.11
|
A challenge-mission reward, as sent by the server. More...
#include <ChallengeMissionReward.h>


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. | |
A challenge-mission reward, as sent by the server.
| - (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.
| - (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.
| dictionary | The server response, whose "reward" entry holds the fields. |
"reward" entry was present.
|
readnonatomicassign |
When the reward stops being shown.
Wire key "view_end".
|
readnonatomicassign |
The item's identifier.
Wire key "item_id"; empty string when absent.
|
readnonatomicassign |
What kind of item the reward is.
Wire key "item_type".
|
readnonatomicassign |
The reward's description.
Wire key "description".
|
readnonatomicassign |
The reward's identifier.
Wire key "reward_id".
|
readnonatomicassign |
Where to fetch the reward's image.
Wire key "image_url".
|
readnonatomicassign |
The reward's display name.
Wire key "name".
|
readnonatomicassign |
The record's version.
Wire key "version".