private void onDecorationUpdated(PurchaseDecorationOperation operation, HttpResponse httpResponse) { UpdateDecorationResponse responseBody = operation.ResponseBody; Service.Get <EventDispatcher>().DispatchEvent(new IglooServiceEvents.DecorationUpdated(responseBody.decorationId, operation.Count)); Service.Get <EventDispatcher>().DispatchEvent(new RewardServiceEvents.MyAssetsReceived(responseBody.assets)); handleCPResponse(responseBody); }
public APICall <PurchaseDecorationOperation> PurchaseDecoration(DecorationId decorationId, int?count) { if (!count.HasValue) { count = 1; } PurchaseDecorationOperation operation = new PurchaseDecorationOperation(decorationId.ToString(), count.Value); return(new APICall <PurchaseDecorationOperation>(clubPenguinClient, operation)); }