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
824 B
Plaintext

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 IsOK()
{
return ErrCode == ErrCodeEnum.OK;
}
#endregion
#region ToString
public override string ToString()
{
String info = "{ErrCode:" + this.ErrCode + ",ErrMsg:" + this.ErrMsg + "}";
return info;
}
#endregion
}
}