You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
826 B
C#

11 months ago
using System;
namespace BP.GPM.DTalk.DDSDK
{
public class ResultPackage
{
/// <summary>
/// 错误码
/// </summary>
public ErrCodeEnum ErrCode { get; set; }
/// <summary>
/// 错误消息
/// </summary>
public string ErrMsg { get; set; }
/// <summary>
/// 结果的json形式
/// </summary>
public String Json { get; set; }
#region IsOK Function
public bool ItIsOK()
{
return ErrCode == ErrCodeEnum.OK;
}
#endregion
#region ToString
public override string ToString()
{
String info = "{ErrCode:" + this.ErrCode + ",ErrMsg:" + this.ErrMsg + "}";
return info;
}
#endregion
}
}