Class RedemptionCodeService

java.lang.Object
com.bitheads.braincloud.services.RedemptionCodeService

public class RedemptionCodeService
extends Object
Created by prestonjennings on 2015-10-27.
  • Constructor Details

    • RedemptionCodeService

      public RedemptionCodeService​(BrainCloudClient client)
  • 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 redeem
      codeType - The type of code
      jsonCustomRedemptionInfo - Optional - A JSON string containing custom redemption data
      callback - The method to be invoked when the server response is received
    • getRedeemedCodes

      public void getRedeemedCodes​(String codeType, IServerCallback callback)
      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