public void PurchaseDecoration(DecorationId decorationId, int?count, IIglooCatalogPurchaseErrorHandler errorHandler) { APICall <PurchaseDecorationOperation> aPICall = clubPenguinClient.IglooApi.PurchaseDecoration(decorationId, count); aPICall.OnResponse += onDecorationUpdated; aPICall.OnError += delegate { errorHandler.OnPurchaseDecorationError(); }; aPICall.Execute(); }
public void PurchaseDecoration(int decorationDefinitionId, DecorationType type, int?count, IIglooCatalogPurchaseErrorHandler errorHandler) { PurchaseDecoration(new DecorationId(decorationDefinitionId, type), count, errorHandler); }