using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Waste.Domain; namespace Waste.Application { public class DeviceList : W_Device { /// /// 商户名称 /// public string BusinessName { get; set; } /// /// ICCID /// public string ICCID { get; set; } = ""; /// /// IMEI /// public string IMEI { get; set; } = ""; /// /// IMSI /// public string IMSI { get; set; } = ""; /// /// 今日测量次数 /// public int TodayCount { get; set; } = 0; /// /// 累计测量次数 /// public int TotalCount { get; set; } = 0; /// /// 今日测量重量 /// public decimal TodayWeight { get; set; } = 0; /// /// 累计测量重量 /// public decimal TotalWeight { get; set; } = 0; /// /// 最近心跳时间 /// public DateTime? LastBeatTime { get; set; } /// /// 网络状态,0-离线,1-在线,规则:最新测量时间、最近心跳时间在16分钟之内则是在线 /// public int NetStatus { get; set; } = 0; /// /// 信号强度,分为5格信号,算法为:31/6 /// public string sign { get; set; } } /// /// 设备批量操作 /// public class DeviceBatchModel { /// /// 服务商ID /// public Guid BusinessId { get; set; } /// /// 操作类型,1-分配,2-回收 /// public int type { get; set; } /// /// 设备ID列表 /// public List codes { get; set; } } /// /// 设备信息提交 /// public class DeviceSubmit:W_Device { /// /// 设备对应的SecretHash /// public string SecretHash { get; set; } /// /// 设备对应的DevId /// public string DevId { get; set; } /// /// 设备对应的Secret /// public string Secret { get; set; } } }