private void onQaDecorationCreated(QACreateDecorationOperation operation, HttpResponse httpResponse) { CreateDecorationResponse responseBody = operation.ResponseBody; Service.Get <EventDispatcher>().DispatchEvent(new IglooServiceEvents.DecorationCreated(responseBody.decorationId)); Service.Get <EventDispatcher>().DispatchEvent(new RewardServiceEvents.MyAssetsReceived(responseBody.assets)); handleCPResponse(responseBody); }
protected override void PerformOfflineAction(OfflineDatabase offlineDatabase, IOfflineDefinitionLoader offlineDefinitions) { DecorationId decorationId = new DecorationId(DefinitionId, (DecorationType)Type); AddDecoration(decorationId, Count, offlineDatabase); ResponseBody = new CreateDecorationResponse { assets = offlineDatabase.Read <ClubPenguin.Net.Offline.PlayerAssets>().Assets, decorationId = decorationId }; }