POBReward Class Reference

Inherits from NSObject
Declared in POBReward.h

Overview

Holds the general information about Reward to be provided to user.

  currencyType

Currency for the reward, e.g. coin, life, etc.

@property (nonatomic, strong, readonly) NSString *currencyType

Declared In

POBReward.h

  amount

Reward amount to offer to the user

@property (nonatomic, readonly) NSNumber *amount

Declared In

POBReward.h

+ unspecifiedReward

Returns a reward with unspecified currency type & amount(0).

+ (POBReward *)unspecifiedReward

Return Value

reward with unspecified currency type & amount

Declared In

POBReward.h

– initWithCurrencyType:withAmount:

Initializes & returns a newly initialized Reward object with the specified currency type and amount

- (instancetype)initWithCurrencyType:(NSString *)currencyType withAmount:(NSNumber *)amount

Parameters

currencyType

Type of currency

amount

amount of currency

Declared In

POBReward.h

– isEqualToReward:

Returns a Boolean value that indicates whether the given reward is equal to the receiver by comparing its currency & amount.

- (BOOL)isEqualToReward:(POBReward *)reward

Parameters

reward

to compare with the receiver

Return Value

YES if the receiver and anObject have same currency & amount, otherwise NO.

Declared In

POBReward.h