Пример #1
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _type    = reader.Read <string>("Type");
     _code    = reader.Read <string>("Code");
     _message = reader.Read <string>("Message");
     _detail  = reader.Read <ErrorDetail>("Detail");
 }
Пример #2
0
 public Error(string type, string code, string message, ErrorDetail detail) : base()
 {
     this._type    = type;
     this._code    = code;
     this._message = message;
     this._detail  = detail;
 }
Пример #3
0
 /// <summary>
 /// Sets the Detail property.
 /// </summary>
 /// <param name="detail">Detail property.</param>
 /// <returns>this instance.</returns>
 public Error WithDetail(ErrorDetail detail)
 {
     this._detail = detail;
     return(this);
 }
Пример #4
0
 /// <summary>
 /// Sets the Detail property.
 /// </summary>
 /// <param name="detail">Detail property.</param>
 /// <returns>this instance.</returns>
 public Error WithDetail(ErrorDetail detail)
 {
     this._detail = detail;
     return this;
 }
Пример #5
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _type = reader.Read<string>("Type");
     _code = reader.Read<string>("Code");
     _message = reader.Read<string>("Message");
     _detail = reader.Read<ErrorDetail>("Detail");
 }