private void onDecorationCreated(CreateDecorationOperation 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); }
public APICall <CreateDecorationOperation> CreateDecoration(int definitionId, DecorationType type, int?count) { if (!count.HasValue) { count = 1; } CreateDecorationOperation operation = new CreateDecorationOperation(definitionId, type, count.Value); return(new APICall <CreateDecorationOperation>(clubPenguinClient, operation)); }