Captainup  2.4
Instance Methods | Properties | List of all members
<CPTReward> Protocol Reference

#import <CPTReward.h>

Inheritance diagram for <CPTReward>:
<CPTObject>

Instance Methods

(nonnull id< CPTRewardType >) - getRewardType
 
(nullable id< CPTRewardData >) - getDataByName:
 
(nullable NSString *) - getStringByName:
 
(NSUInteger) - getNumberByName:
 
(nullable NSArray< NSString * > *) - getArrayByName:
 
- Instance Methods inherited from <CPTObject>
(nonnull instancetype) - initWithDictionary:
 
(nonnull NSDictionary< NSString *, id > *) - toDictionary
 

Properties

NSString * rewardId
 
NSString * name
 
NSString * rewardDescription
 
NSString * type
 
NSUInteger amount
 
NSString * rewardTypeId
 
NSDictionary< NSString *, id< CPTRewardData > > * data
 
- Properties inherited from <CPTObject>
NSDictionary< NSString *, id > * sourceDictionary
 

Detailed Description

Description

Method Documentation

◆ getArrayByName:()

- (nullable NSArray<NSString*>*) getArrayByName: (nonnull NSString *)  fieldName

Get data value of Array type

Parameters
fieldNamethe field name you want to retrieve
Returns
the value as a ArrayList<String> or null if no value was found

◆ getNumberByName:()

- (NSUInteger) getNumberByName: (nonnull NSString *)  fieldName

Get data value of number type

Parameters
fieldNamethe field name you want to retrieve
Returns
the value as a int or 0 if no value was found

◆ getRewardType()

- (nonnull id<CPTRewardType>) getRewardType

get reward type

Returns
return CPTRewardType reward type

◆ getStringByName:()

- (nullable NSString*) getStringByName: (nonnull NSString *)  fieldName

Get data value of String type

Parameters
fieldNamethe field name you want to retrieve
Returns
the value as a String or null if no value was found

Property Documentation

◆ amount

- (NSUInteger) amount
readnonatomicassign

Reward amount

◆ data

- (NSDictionary<NSString*,id<CPTRewardData> >*) data
readnonatomicassign

◆ name

- (NSString*) name
readnonatomicassign

The name of the reward

◆ rewardDescription

- (NSString*) rewardDescription
readnonatomicassign

The name of the reward

◆ rewardId

- (NSString*) rewardId
readnonatomicassign

The ID of the reward

◆ rewardTypeId

- (NSString*) rewardTypeId
readnonatomicassign

Reward type id

◆ type

- (NSString*) type
readnonatomicassign

The type of the reward


The documentation for this protocol was generated from the following file: