Пример #1
0
        /// <summary>
        /// Accepts the trade from the user.  Returns a deserialized
        /// JSON object.
        /// </summary>
        public bool AcceptTrade()
        {
            ValidateLocalTradeItems();

            bool ok = session.AcceptTradeWebCmd();

            if (!ok)
            {
                throw new TradeException("The web command to accept the trade failed.");
            }

            return(true);
        }