Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
    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));
    }