Ejemplo n.º 1
0
 private void onPurchaseDisneyStoreItemReceived(PurchaseDisneyStoreItemOperation operation, HttpResponse httpResponse)
 {
     awardDisneyStoreItem(operation.Response);
     handleCPResponse(operation.Response);
     Service.Get <EventDispatcher>().DispatchEvent(new DisneyStoreServiceEvents.DisneyStorePurchaseComplete(DisneyStoreServiceEvents.DisneyStorePurchaseResult.Success));
 }
Ejemplo n.º 2
0
    public APICall <PurchaseDisneyStoreItemOperation> PurchaseDisneyStoreItem(int itemId, int count)
    {
        PurchaseDisneyStoreItemOperation operation = new PurchaseDisneyStoreItemOperation(itemId, count);

        return(new APICall <PurchaseDisneyStoreItemOperation>(clubPenguinClient, operation));
    }
Ejemplo n.º 3
0
 protected override void PerformOfflineAction(OfflineDatabase offlineDatabase, IOfflineDefinitionLoader offlineDefinitions)
 {
     Response = PurchaseDisneyStoreItemOperation.Purchase(ItemId, Count, offlineDatabase, offlineDefinitions);
 }