Class AppStoreService

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

public class AppStoreService
extends Object
  • Constructor Details

  • Method Details

    • verifyPurchase

      public void verifyPurchase​(String storeId, String jsonReceiptData, IServerCallback callback)
      Verifies that purchase was properly made at the store. Service Name - AppStore Service Operation - VerifyPurchase
      Parameters:
      storeId - The store platform. Valid stores are: - itunes - facebook - appworld - steam - windows - windowsPhone - googlePlay
      jsonReceiptData - The specific store data required
      callback - The method to be invoked when the server response is received
    • getEligiblePromotions

      public void getEligiblePromotions​(IServerCallback callback)
      Returns the eligible promotions for the player. Service Name - AppStore Service Operation - EligiblePromotions
      Parameters:
      callback - The method to be invoked when the server response is received
    • getSalesInventory

      public void getSalesInventory​(String storeId, String userCurrency, IServerCallback callback)
      Method gets the active sales inventory for the passed-in currency type. Service Name - AppStore Service Operation - GetInventory
      Parameters:
      storeId - The store platform. Valid stores are: - itunes - facebook - appworld - steam - windows - windowsPhone - googlePlay
      userCurrency - The currency type to retrieve the sales inventory for.
      callback - The method to be invoked when the server response is received
    • getSalesInventoryByCategory

      public void getSalesInventoryByCategory​(String storeId, String userCurrency, String category, IServerCallback callback)
      Method gets the active sales inventory for the passed-in currency type. Service Name - AppStore Service Operation - GetInventory
      Parameters:
      storeId - The store platform. Valid stores are: - itunes - facebook - appworld - steam - windows - windowsPhone - googlePlay
      userCurrency - The currency type to retrieve the sales inventory for.
      category - The product category
      callback - The method to be invoked when the server response is received
    • startPurchase

      public void startPurchase​(String storeId, String jsonPurchaseData, IServerCallback callback)
      Start A Two Staged Purchase Transaction Service Name - AppStore Service Operation - StartPurchase
      Parameters:
      storeId - The store platform. Valid stores are: - itunes - facebook - appworld - steam - windows - windowsPhone - googlePlay
      jsonPurchaseData - specific data for purchasing 2 staged purchases
      callback - The method to be invoked when the server response is received
    • finalizePurchase

      public void finalizePurchase​(String storeId, String transactionId, String jsonTransactionData, IServerCallback callback)
      Finalize A Two Staged Purchase Transaction Service Name - AppStore Service Operation - FinalizePurchase
      Parameters:
      storeId - The store platform. Valid stores are: - itunes - facebook - appworld - steam - windows - windowsPhone - googlePlay
      transactionId - the transactionId returned from start Purchase
      jsonTransactionData - specific data for purchasing 2 staged purchases
      callback - The method to be invoked when the server response is received
    • refreshPromotions

      public void refreshPromotions​(IServerCallback callback)
      Returns up-to-date eligible 'promotions' for the user and a 'promotionsRefreshed' flag indicating whether the user's promotion info required refreshing. Service Name - AppStore Service Operation - RefreshPromotions
      Parameters:
      callback - The method to be invoked when the server response is received