Exemplo n.º 1
0
    public APICall <UpdateIglooDataOperation> SetIglooVisibility(IglooVisibility visibility)
    {
        MutableIglooData mutableIglooData = new MutableIglooData();

        mutableIglooData.visibility = visibility;
        UpdateIglooDataOperation operation = new UpdateIglooDataOperation(mutableIglooData);

        return(new APICall <UpdateIglooDataOperation>(clubPenguinClient, operation));
    }
Exemplo n.º 2
0
    public APICall <UpdateIglooDataOperation> SetActiveIglooLayout(long iglooLayoutId)
    {
        MutableIglooData mutableIglooData = new MutableIglooData();

        mutableIglooData.activeLayoutId = iglooLayoutId;
        UpdateIglooDataOperation operation = new UpdateIglooDataOperation(mutableIglooData);

        return(new APICall <UpdateIglooDataOperation>(clubPenguinClient, operation));
    }
Exemplo n.º 3
0
        public void UpdateIglooData(IglooVisibility?visibility, long?activeLayoutId, IIglooUpdateDataErrorHandler errorHandler = null)
        {
            MutableIglooData mutableIglooData = new MutableIglooData();

            mutableIglooData.activeLayoutId = activeLayoutId;
            mutableIglooData.visibility     = visibility;
            APICall <UpdateIglooDataOperation> aPICall = clubPenguinClient.IglooApi.UpdateIglooData(mutableIglooData);

            aPICall.OnResponse += onIglooDataUpdated;
            aPICall.OnError    += delegate(UpdateIglooDataOperation op, HttpResponse HttpResponse)
            {
                if (errorHandler != null)
                {
                    errorHandler.OnUpdateDataError();
                }
                else
                {
                    handleCPResponseError(op, HttpResponse);
                }
            };
            aPICall.Execute();
        }
Exemplo n.º 4
0
    public APICall <UpdateIglooDataOperation> UpdateIglooData(MutableIglooData update)
    {
        UpdateIglooDataOperation operation = new UpdateIglooDataOperation(update);

        return(new APICall <UpdateIglooDataOperation>(clubPenguinClient, operation));
    }
 public UpdateIglooDataOperation(MutableIglooData update)
 {
     RequestBody = update;
 }