| | |
| | | /// </summary>
|
| | | public string UserName = string.Empty;
|
| | | /// <summary>
|
| | | /// 记录上一次的用户昵称(给个人中心修改昵称时用的)
|
| | | /// </summary>
|
| | | [Newtonsoft.Json.JsonIgnore]
|
| | | public string OldUserName = string.Empty;
|
| | | /// <summary>
|
| | | /// DistributedMark
|
| | | /// </summary>
|
| | | [Newtonsoft.Json.JsonIgnore]
|
| | |
| | | /// <summary>
|
| | | /// 登陆权限编号的翻译名:1:主账号自己(本人) 2:赋予管理员权限的成员 3:成员
|
| | | /// </summary>
|
| | | [Newtonsoft.Json.JsonIgnore]
|
| | | public string AuthorityText = string.Empty;
|
| | | /// <summary>
|
| | | /// 用户头像数据(临时用,会置空)
|
| | |
| | | /// 云端远程在线状态
|
| | | /// </summary>
|
| | | public bool MqttOnlineStatus = false;
|
| | | /// <summary>
|
| | | /// 与此网关在云端Emq通信时,负载加解的16位Aes密钥
|
| | | /// </summary>
|
| | | public string AesKey;
|
| | | /// <summary>
|
| | | /// 网关对应的唯一码
|
| | | /// </summary>
|
| | | public string MacMark;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | /// 上报时间(hh:mm:ss)
|
| | | /// </summary>
|
| | | public string Time = string.Empty;
|
| | | /// <summary>
|
| | | /// 2020.04.13追加新分类 1:一般报警 9000:门锁常开模式报警
|
| | | /// </summary>
|
| | | public int MsgDiv = 1;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// </summary>
|
| | | public bool IsHdlDevice = true;
|
| | | /// <summary>
|
| | | /// 设备的具体类型的翻译名字ID(R文件里面的)
|
| | | /// 设备的具体类型的翻译名字ID,也叫官方名字(R文件里面的)
|
| | | /// </summary>
|
| | | public int ConcreteTextId = R.MyInternationalizationString.UnknowDevice;
|
| | | /// <summary>
|
| | | /// 设备的具体类型(值为自定义的值,好像可以是镜像ID)
|
| | | /// 设备的具体类型,也叫官方类型(值为自定义的值,好像可以是镜像ID)
|
| | | /// </summary>
|
| | | public DeviceConcreteType ConcreteType = DeviceConcreteType.UnKownDevice;
|
| | | /// <summary>
|
| | |
| | | /// 设备所属类型的翻译名字ID(R文件里面的)
|
| | | /// </summary>
|
| | | public int BeloneTextId = R.MyInternationalizationString.UnknowDevice;
|
| | | /// <summary>
|
| | | /// 设备的默认备注翻译名字ID(个人中心专用,Language文件里面的)
|
| | | /// </summary>
|
| | | public int DefultNameId
|
| | | {
|
| | | get
|
| | | {
|
| | | int value = ConcreteTextId + 20000;
|
| | | //默认备注名称是在50000~59999
|
| | | if (50000 <= value && value <= 59999)
|
| | | {
|
| | | return value;
|
| | | }
|
| | | return ConcreteTextId;
|
| | | }
|
| | | }
|
| | | /// <summary>
|
| | | /// 设备的类型翻译名字ID(个人中心专用,Language文件里面的)
|
| | | /// </summary>
|
| | | public int ObjectTypeNameId = R.MyInternationalizationString.UnknowDevice;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// </summary>
|
| | | public bool IsReading = false;
|
| | | /// <summary>
|
| | | /// 是否已读(listMsg匹配,对应一条数据里面包含多个报警)
|
| | | /// </summary>
|
| | | public List<bool> ListReading = new List<bool>();
|
| | | /// <summary>
|
| | | /// 时间 2019-09-10T13:11:55
|
| | | /// </summary>
|
| | | public string CreatedOnUtc = string.Empty;
|
| | |
| | | /// </summary>
|
| | | public string MsgObjectText = string.Empty;
|
| | | /// <summary>
|
| | | /// 消息文本
|
| | | /// 消息文本(对应一条数据里面包含多个报警)
|
| | | /// </summary>
|
| | | public string MsgText = string.Empty;
|
| | | public List<string> listMsg = new List<string>();
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | /// 显示设备历史版本 1 -> 显示
|
| | | /// </summary>
|
| | | public int DeviceHistory = 0;
|
| | | /// <summary>
|
| | | /// 检测能否广播得到网关 1->开启
|
| | | /// </summary>
|
| | | public int CheckCanReceiveGateway = 0;
|
| | | /// <summary>
|
| | | /// 强制跳转真实设备界面 1->设备列表强制跳转
|
| | | /// </summary>
|
| | | public int GotoRealDeviceForm = 0;
|
| | | /// <summary>
|
| | | /// 强制跳转网关产品界面 1->网关列表强制跳转
|
| | | /// </summary>
|
| | | public int GotoGatewayProductInfoForm = 0;
|
| | | /// <summary>
|
| | | /// 自动化常开时间变更为分钟,而不是小时 1->强制变更为分钟
|
| | | /// </summary>
|
| | | public int DoorLockNomallyOpenTimeMode = 0;
|
| | | }
|
| | | #endregion
|
| | |
|
| | | #region ■ 门锁的报警结果______________________ |
| | |
|
| | | /// <summary> |
| | | /// 门锁的报警结果 |
| | | /// </summary> |
| | | public class DoorLockAlarmsResult
|
| | | {
|
| | | /// <summary> |
| | | /// 报警类型 |
| | | /// </summary> |
| | | public int AlarmCode = -1;
|
| | | /// <summary> |
| | | /// Clusterid |
| | | /// </summary> |
| | | public int Clusterid = -1;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 自动化推送结果______________________
|
| | |
|
| | | /// <summary>
|
| | | /// 自动化推送内容
|
| | | /// </summary>
|
| | | public class LogicPushResult
|
| | | {
|
| | | /// <summary>
|
| | | /// 自动化ID
|
| | | /// </summary>
|
| | | public int LogicId = -1;
|
| | | /// <summary>
|
| | | /// 自动化名称
|
| | | /// </summary>
|
| | | public string LogicName = string.Empty;
|
| | | /// <summary>
|
| | | /// 自动化推送内容
|
| | | /// </summary>
|
| | | public string LogicCustomPushText = string.Empty;
|
| | | /// <summary>
|
| | | /// 门锁常开模式数据(自动化推送)
|
| | | /// </summary>
|
| | | public DoorNormallyOpenData ActionData = null;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 门锁常开模式数据(自动化推送)
|
| | | /// </summary>
|
| | | public class DoorNormallyOpenData
|
| | | {
|
| | | /// <summary>
|
| | | /// 8:常开模式的数据
|
| | | /// </summary>
|
| | | public int Actiontype = -1;
|
| | | /// <summary>
|
| | | /// 门锁Mac地址
|
| | | /// </summary>
|
| | | public string MacStr = string.Empty;
|
| | | /// <summary>
|
| | | /// 门锁端口号
|
| | | /// </summary>
|
| | | public int Epoint = -1;
|
| | | /// <summary>
|
| | | /// 设置自动化时,发送的透传数据 055704010112:常开模式打开 055704010113:常开模式关闭
|
| | | /// </summary>
|
| | | public string PassDataString = string.Empty;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 网关回复接收类______________________
|
| | |
|
| | | /// <summary>
|
| | | /// 网关回复接收类
|
| | | /// </summary>
|
| | | public class ReceiptGatewayResult
|
| | | {
|
| | | /// <summary>
|
| | | /// 错误消息,如果没有错误,则为null(网关超时也为null)
|
| | | /// </summary>
|
| | | public string ErrorMsg = null;
|
| | | /// <summary>
|
| | | /// 错误消息的类型 -1:网关对象丢失 0:超时网关没有回复 1:正常
|
| | | /// </summary>
|
| | | public int ErrorMsgDiv = 1;
|
| | | /// <summary>
|
| | | /// 接收的数据
|
| | | /// </summary>
|
| | | public string ReceiptData = null;
|
| | | /// <summary>
|
| | | /// 接收的数据(多个返回主题专用)
|
| | | /// </summary>
|
| | | public string[] listReceiptData = null;
|
| | | }
|
| | |
|
| | | #endregion
|
| | | }
|