1
This commit is contained in:
58
00.SDK/E_ZKEccTopSdk/TopResponse.cs
Normal file
58
00.SDK/E_ZKEccTopSdk/TopResponse.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace E_ZKEccTopSdk
|
||||
{
|
||||
[Serializable]
|
||||
public abstract class TopResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 错误码
|
||||
/// </summary>
|
||||
[XmlElement("code")]
|
||||
public string ErrCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 错误信息
|
||||
/// </summary>
|
||||
[XmlElement("msg")]
|
||||
public string ErrMsg { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 子错误码
|
||||
/// </summary>
|
||||
[XmlElement("sub_code")]
|
||||
public string SubErrCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 子错误信息
|
||||
/// </summary>
|
||||
[XmlElement("sub_msg")]
|
||||
public string SubErrMsg { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// TOP请求唯一标识符
|
||||
/// </summary>
|
||||
[XmlElement("request_id")]
|
||||
public string RequestId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 响应原始内容
|
||||
/// </summary>
|
||||
public string Body { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 响应结果是否错误
|
||||
/// </summary>
|
||||
public bool IsError
|
||||
{
|
||||
get
|
||||
{
|
||||
return !string.IsNullOrEmpty(this.ErrCode) || !string.IsNullOrEmpty(this.SubErrCode);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user