Package com.bitheads.braincloud.services
Class RedemptionCodeService
java.lang.Object
com.bitheads.braincloud.services.RedemptionCodeService
public class RedemptionCodeService extends Object
Created by prestonjennings on 2015-10-27.
-
Constructor Summary
Constructors Constructor Description RedemptionCodeService(BrainCloudClient client) -
Method Summary
Modifier and Type Method Description voidgetRedeemedCodes(String codeType, IServerCallback callback)Retrieve the codes already redeemed by player.voidredeemCode(String scanCode, String codeType, String jsonCustomRedemptionInfo, IServerCallback callback)Redeem a code.
-
Constructor Details
-
RedemptionCodeService
-
-
Method Details
-
redeemCode
public void redeemCode(String scanCode, String codeType, String jsonCustomRedemptionInfo, IServerCallback callback)Redeem a code. Service Name - RedemptionCode Service Operation - REDEEM_CODE- Parameters:
scanCode- The code to redeemcodeType- The type of codejsonCustomRedemptionInfo- Optional - A JSON string containing custom redemption datacallback- The method to be invoked when the server response is received
-
getRedeemedCodes
Retrieve the codes already redeemed by player. Service Name - RedemptionCode Service Operation - GET_REDEEMED_CODES- Parameters:
codeType- Optional - The type of codes to retrieve. Returns all codes if left unspecified.callback- The method to be invoked when the server response is received
-