| | |
| | | /// <summary>
|
| | | /// 登陆权限编号的翻译名:1:主账号自己(本人) 2:赋予管理员权限的成员 3:成员
|
| | | /// </summary>
|
| | | [Newtonsoft.Json.JsonIgnore]
|
| | | public string AuthorityText = string.Empty;
|
| | | /// <summary>
|
| | | /// 用户头像数据(临时用,会置空)
|
| | |
| | | public ZigBee.Device.CommonDevice Device = null;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 设备名字内容
|
| | | /// </summary>
|
| | | public class DeviceNameContent
|
| | | {
|
| | | public string A官方名字 = string.Empty;
|
| | | public string A所属名字 = string.Empty;
|
| | | public string A备注名字 = string.Empty;
|
| | | public string A类型名字 = string.Empty;
|
| | | public int ConcreteTypeValue = 0;
|
| | | public int BeloneTypeValue = 0;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 网关信息类__________________________
|
| | |
| | | /// 云端远程在线状态
|
| | | /// </summary>
|
| | | public bool MqttOnlineStatus = false;
|
| | | /// <summary>
|
| | | /// 与此网关在云端Emq通信时,负载加解的16位Aes密钥
|
| | | /// </summary>
|
| | | public string AesKey;
|
| | | /// <summary>
|
| | | /// 网关对应的唯一码
|
| | | /// </summary>
|
| | | public string MacMark;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | public class FirmwareVersionInfo
|
| | | {
|
| | | /// <summary>
|
| | | /// 云端上面的那个名字
|
| | | /// 云端上面的那个名字,如果是本地空调的模块时,它为全路径
|
| | | /// </summary>
|
| | | public string Name = string.Empty;
|
| | | /// <summary>
|
| | |
| | | /// </summary>
|
| | | public string HardwareVersion = string.Empty;
|
| | | /// <summary>
|
| | | /// 镜像类型
|
| | | /// 镜像类型(当等于-100时,代表它是空调的本地模块)
|
| | | /// </summary>
|
| | | public string ImagType = string.Empty;
|
| | | /// <summary>
|
| | | /// 日期(后面追加的 utc时间)
|
| | | /// </summary>
|
| | | public string CreatedOnUtc = string.Empty;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 网关需要升级的信息
|
| | | /// </summary>
|
| | | public class GatewayNeedUpdateInfo
|
| | | {
|
| | | /// <summary>
|
| | | /// 升级固件的全路径
|
| | | /// </summary>
|
| | | public string FullFileName = string.Empty;
|
| | | /// <summary>
|
| | | /// 虚拟驱动号
|
| | | /// </summary>
|
| | | public int DriveCode = -1;
|
| | | /// <summary>
|
| | | /// 1:Linux的升级固件 2:协调器的升级固件 3:虚拟驱动的升级固件
|
| | | /// </summary>
|
| | | public int Div = -1;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// </summary>
|
| | | public bool IsHdlDevice = true;
|
| | | /// <summary>
|
| | | /// 设备的具体类型的翻译名字ID,也叫官方名字(R文件里面的)
|
| | | /// 设备的官方名字
|
| | | /// </summary>
|
| | | public int ConcreteTextId = R.MyInternationalizationString.UnknowDevice;
|
| | | public string ConcreteText = string.Empty;
|
| | | /// <summary>
|
| | | /// 设备的具体类型,也叫官方类型(值为自定义的值,好像可以是镜像ID)
|
| | | /// 设备的具体类型
|
| | | /// </summary>
|
| | | public DeviceConcreteType ConcreteType = DeviceConcreteType.UnKownDevice;
|
| | | /// <summary>
|
| | | /// 设备所属类型的翻译名字
|
| | | /// </summary>
|
| | | public string BeloneText = string.Empty;
|
| | | /// <summary>
|
| | | /// 设备所属类型
|
| | | /// </summary>
|
| | | public DeviceBeloneType BeloneType = DeviceBeloneType.A未知设备;
|
| | | /// <summary>
|
| | | /// 设备所属类型的翻译名字ID(R文件里面的)
|
| | | /// 设备的默认备注翻译名字
|
| | | /// </summary>
|
| | | public int BeloneTextId = R.MyInternationalizationString.UnknowDevice;
|
| | | public string DeviceDefultName = string.Empty;
|
| | | /// <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;
|
| | | public string ObjectTypeName = string.Empty;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// 自动化常开时间变更为分钟,而不是小时 1->强制变更为分钟
|
| | | /// </summary>
|
| | | public int DoorLockNomallyOpenTimeMode = 0;
|
| | | /// <summary>
|
| | | /// 是否将发送及接收到的数据写入到Log中 1->写入
|
| | | /// </summary>
|
| | | public int WriteSendAndReceveDataToFile = 0;
|
| | | /// <summary>
|
| | | /// 是否将SocketReceive的数据写入到Log中 1->写入
|
| | | /// </summary>
|
| | | public int WriteSocketReceiveDataToFile = 0;
|
| | | /// <summary>
|
| | | /// 是否开启调试App功能 1->开启
|
| | | /// </summary>
|
| | | public int StartDebugApp = 0;
|
| | | /// <summary>
|
| | | /// 当设备Type不一样时,是否生成Log 1->生成
|
| | | /// </summary>
|
| | | public int CheckDeviceType = 0;
|
| | | /// <summary>
|
| | | /// 是否使用以前旧的设备列表获取方式 1->使用
|
| | | /// </summary>
|
| | | public int UseOldSearchDeviceMethord = 0;
|
| | | /// <summary>
|
| | | /// 是否记录上报的gbs坐标 1->记录
|
| | | /// </summary>
|
| | | public int WriteGpsPoint = 0;
|
| | | }
|
| | | #endregion
|
| | |
|
| | |
| | | /// </summary>
|
| | | public int ErrorMsgDiv = 1;
|
| | | /// <summary>
|
| | | /// 接收的数据
|
| | | /// 接收的Data数据
|
| | | /// </summary>
|
| | | public string ReceiptData = null;
|
| | | /// <summary>
|
| | | /// 接收的数据(多个返回主题专用)
|
| | | /// </summary>
|
| | | public string[] listReceiptData = null;
|
| | | /// <summary>
|
| | | /// 这个是网关回复的整个json数据,个数与listReceiptData一致
|
| | | /// </summary>
|
| | | public string[] JsonData = null;
|
| | | }
|
| | |
|
| | | #endregion
|