| | |
| | | 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 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
|