using Nirvana.Common; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace YBDevice.Entity { /// /// 八电极设备发送的数据 /// public class BodyRequstDto { /// /// 参数,包含sn和测量数据 /// public string @params {get;set;} } /// /// PCH01W解析信息 /// public class H01WAnalyDto { /// /// 包头,固定为A9 /// public string Header { get; set; } = ""; /// /// 体重,分度为0.1,单位为斤 /// public int Weight { get; set; } = 0; /// /// 身高,分度为0.5,单位为CM /// public int Height { get; set; } = 0; /// /// 阻抗 65535为测量失败 /// public int imp { get; set; } = 0; /// /// 设备机器码 /// public string sn { get; set; } = ""; /// /// 分隔符,固定为00 /// public string splitstr { get; set; } = ""; /// /// 数据是否验证通过 /// public bool ischecked { get; set; } = false; /// /// 解密出的16进制数据 /// public string data { get; set; } = ""; } /// /// 八电极数据解析信息 /// public class BodyAnalyDto { /// /// 包头,第一条固定为A1,第二条固定为A2 /// public string Header { get; set; } = ""; /// /// 体重,分度为0.05 /// public int Weight { get; set; } = 0; /// /// 左手阻抗 65535为测量失败 /// public int lefthandimp { get; set; } = 0; /// /// 右手阻抗 65535为测量失败 /// public int righthandimp { get; set; } = 0; /// /// 右脚阻抗,65535为测量失败 /// public int rightfootimp { get; set; } = 0; /// /// 左脚阻抗 65535为测量失败 /// public int leftfootimp { get; set; } = 0; /// /// 全身阻抗,65535为测量失败 /// public int bodyimp { get; set; } = 0; /// /// 身高,分度为0.5 /// public int height { get; set; } = 0; /// /// 设备机器码 /// public string sn { get; set; } = ""; /// /// 分隔符,固定为00 /// public string splitstr { get; set; } = ""; /// /// 数据是否验证通过 /// public bool ischecked { get; set; } = false; /// /// 解密出的16进制数据 /// public string data { get; set; } = ""; } }