RewardsRequest
public enum RewardsRequest : URLRequestConvertible
Enumeration of network requests for Rewards.
-
Get rewards with optional
Parameters
.Declaration
Swift
case getRewards(parameters: Parameters?, showFavorites: Bool)
-
Get reward by ID with optional
Parameters
.Declaration
Swift
case getReward(id: Int, parameters: Parameters?)
-
Get reward with name.
Declaration
Swift
case getRewardWithName(name: String, parameters: Parameters?)
-
Favorite reward with ID.
Declaration
Swift
case favoriteReward(id: Int)
-
Unfavorite reward with ID.
Declaration
Swift
case unfavoriteReward(id: Int)
-
Redeem reward with award.
Declaration
Swift
case redeemRewardWithAward(rewardId: Int, awardId: Int?, address: [String: Any]?, isResponse: Bool, parameters: Parameters?)
-
Redeem reward with nonce.
Declaration
Swift
case redeemRewardWithNonce(rewardId: Int, nonce: String, currency: String, value: Double)
-
Get awards with optional
Parameters
.Declaration
Swift
case getAwards(parameters: Parameters?)
-
Get award with ID.
Declaration
Swift
case getAward(id: Int, parameters: Parameters?)
-
Get redemptions/responses with optional
Parameters
.Declaration
Swift
case getRedemptions(parameters: Parameters?)
-
Get redemption with ID.
Declaration
Swift
case getRedemption(id: Int)
-
Cancel redemption with ID.
Declaration
Swift
case cancelRedemption(id: Int)
-
Declaration
Swift
public var path: String { get }
-
Declaration
Swift
public var method: HTTPMethod { get }
-
Declaration
Swift
public var parameters: Parameters? { get }