public int this[DecorationId id]
 {
     get
     {
         return(inventory[id.ToString()]);
     }
     set
     {
         inventory[id.ToString()] = value;
     }
 }
Пример #2
0
    public APICall <PurchaseDecorationOperation> PurchaseDecoration(DecorationId decorationId, int?count)
    {
        if (!count.HasValue)
        {
            count = 1;
        }
        PurchaseDecorationOperation operation = new PurchaseDecorationOperation(decorationId.ToString(), count.Value);

        return(new APICall <PurchaseDecorationOperation>(clubPenguinClient, operation));
    }
Пример #3
0
    public APICall <DeleteDecorationOperation> DeleteDecoration(DecorationId decorationId)
    {
        DeleteDecorationOperation operation = new DeleteDecorationOperation(decorationId.ToString());

        return(new APICall <DeleteDecorationOperation>(clubPenguinClient, operation));
    }
 public bool ContainsKey(DecorationId key)
 {
     return(inventory.ContainsKey(key.ToString()));
 }