/// <summary>
        /// Initializes a new instance of the <see cref="ResponseModelMarketExecutionReport" /> class.
        /// </summary>
        /// <param name="data">data (required).</param>
        /// <param name="code">code (required).</param>
        /// <param name="message">message (required).</param>
        /// <param name="webRequestId">webRequestId.</param>
        public ResponseModelMarketExecutionReport(ResponseModelMarketExecutionReportData data = default(ResponseModelMarketExecutionReportData), int code = default(int), string message = default(string), string webRequestId = default(string))
        {
            // to ensure "data" is required (not null)
            if (data == null)
            {
                throw new InvalidDataException("data is a required property for ResponseModelMarketExecutionReport and cannot be null");
            }
            else
            {
                this.Data = data;
            }

            // to ensure "code" is required (not null)
            if (code == null)
            {
                throw new InvalidDataException("code is a required property for ResponseModelMarketExecutionReport and cannot be null");
            }
            else
            {
                this.Code = code;
            }

            // to ensure "message" is required (not null)
            if (message == null)
            {
                throw new InvalidDataException("message is a required property for ResponseModelMarketExecutionReport and cannot be null");
            }
            else
            {
                this.Message = message;
            }

            this.WebRequestId = webRequestId;
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OKMarketExecutionReport" /> class.
 /// </summary>
 /// <param name="data">data.</param>
 /// <param name="code">code.</param>
 /// <param name="message">message.</param>
 /// <param name="webRequestId">webRequestId.</param>
 public OKMarketExecutionReport(ResponseModelMarketExecutionReportData data = default(ResponseModelMarketExecutionReportData), int code = default(int), string message = default(string), string webRequestId = default(string))
 {
     this.Data         = data;
     this.Code         = code;
     this.Message      = message;
     this.WebRequestId = webRequestId;
 }