public bool RemoveMyCurrencyItem(int appId, string contextId, long currencyId, long amount) { var asset = new TradeAsset(); asset.CreateCurrencyAsset(appId, contextId, currencyId, amount); return(this.ShouldUpdate(this.MyOfferedItems.RemoveCurrencyItem(asset))); }
public bool AddTheirCurrencyItem(int appId, long contextId, long currencyId, long amount) { var asset = new TradeAsset(); asset.CreateCurrencyAsset(appId, contextId, currencyId, amount); return(ShouldUpdate(TheirOfferedItems.AddCurrencyItem(asset))); }