using System;
namespace BP.GPM.DTalk.DDSDK
{
public class ResultPackage
{
///
/// 错误码
///
public ErrCodeEnum ErrCode { get; set; }
///
/// 错误消息
///
public string ErrMsg { get; set; }
///
/// 结果的json形式
///
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
}
}