Exemplo n.º 1
0
        /// <summary>
        /// Cancels a trade offer by id
        /// </summary>
        /// <param name="offerId">Trade offer id</param>
        /// <returns>Returns true if cancelled</returns>
        public bool CancelTradeOffer(string offerId)
        {
            TradeOffer offer = GetTradeOffer(offerId);

            if (offer != null)
            {
                return(offer.Cancel());
            }

            return(false);
        }
Exemplo n.º 2
0
        public bool CandelOffer(Offer offer)
        {
            TradeOffer tradeOffer = new TradeOffer(session, offer);

            return(tradeOffer.Cancel());
        }