/// <summary> /// Creates a failed <see cref="TradeUpdateEventArgs"/> with the given trade ID, token, reason, and message. /// </summary> /// <param name="tradeId">Trade ID</param> /// <param name="failureReason">Failure reason</param> /// <param name="failureMessage">Failure message</param> /// <param name="token">Item update token</param> public TradeUpdateEventArgs(string tradeId, TradeFailureReason failureReason, string failureMessage, string token = "") { this.Success = false; this.TradeId = tradeId; this.Token = token; this.FailureReason = failureReason; this.FailureMessage = failureMessage; }
/// <summary> /// Creates a failed <see cref="CreateTradeEventArgs"/> with the given failure reason and message. /// </summary> /// <param name="failureReason">Reason the trade failed to create</param> /// <param name="failureMessage">Message from the server</param> public CreateTradeEventArgs(TradeFailureReason failureReason, string failureMessage) { this.Success = false; this.FailureReason = failureReason; this.FailureMessage = failureMessage; }