wxr
2021-07-01 43b0d5870d528f23ecd6aeceb6cfd4325188b46f
HDL_ON/Entity/ResponseEntity/RegionInfoRes.cs
@@ -3,48 +3,125 @@
namespace HDL_ON
{
    [Serializable]
    public class RegionInfoRes
    {
        public string RegionID { get; set; }
    //[Serializable]
    //public class RegionInfoRes
    //{
    //    public string RegionID { get; set; }
        /// <summary>
        /// 区域名称(如:广州、深圳等)
        /// </summary>
        public string RegionName { get; set; }
        /// <summary>
        /// 住宅名称
        /// </summary>
        public string Name { get;set; }
        /// <summary>
        /// 住宅地址
        /// </summary>
        public string Address { get; set; }
    //    /// <summary>
    //    /// 区域名称(如:广州、深圳等)
    //    /// </summary>
    //    public string RegionName { get; set; }
    //    /// <summary>
    //    /// 住宅名称
    //    /// </summary>
    //    public string Name { get;set; }
    //    /// <summary>
    //    /// 住宅地址
    //    /// </summary>
    //    public string Address { get; set; }
        //{
        // {
        //  "Id": "1107487",
        //  "HomeStatus": 2,
        //  "UserGuid": "22980",
        //  "Name": "啊",
        //  "Address": null,
        //  "Longitude": 0.0,
        //  "Latitude": 0.0,
        //  "RegionName": null,
        //  "Company": null,
        //  "ContactPerson": null,
        //  "ContactPersonPhone": null,
        //  "Remarks": null,
        //  "ChangeDate": null,
          //"AccountType": 0,
        //  "CreatedOnUtc": "2020-05-27T06:52:03",
        public bool IsOthreShare = false;
        //  "MainUserDistributedMark": null,
        public List<HomeGateways> homeGateways = new List<HomeGateways>();
    }
    //    //{
    //    // {
    //    //  "Id": "1107487",
    //    //  "HomeStatus": 2,
    //    //  "UserGuid": "22980",
    //    //  "Name": "啊",
    //    //  "Address": null,
    //    //  "Longitude": 0.0,
    //    //  "Latitude": 0.0,
    //    //  "RegionName": null,
    //    //  "Company": null,
    //    //  "ContactPerson": null,
    //    //  "ContactPersonPhone": null,
    //    //  "Remarks": null,
    //    //  "ChangeDate": null,
    //      //"AccountType": 0,
    //    //  "CreatedOnUtc": "2020-05-27T06:52:03",
    //    public bool IsOthreShare = false;
    //    //  "MainUserDistributedMark": null,
    //    public List<HomeGateways> homeGateways = new List<HomeGateways>();
    //}
    public class HomeGateways
    {
        public string GatewayUniqueId = "";
    }
    [Serializable]
    public class RegionInfoRes
    {
        /// <summary>
        /// 住宅ID
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 住宅名称
        /// </summary>
        public string homeName { get; set; }
        /// <summary>
        /// 住宅地址
        /// </summary>
        public string homeAddress { get; set; }
        /// <summary>
        /// 是否为其他主用户分享过来的住宅
        /// </summary>
        public bool isOtherShare { get; set; }
        //2020-11-13 新增
        /// <summary>
        /// 仅子账号登陆的时候使用,当【IsOthreShare】为"true",
        /// 子账户类型 1.ORDINARY 2.DEBUG 3.ADMIN
        /// </summary>
        public string accountType;
        /// <summary>
        /// 是否支持远程
        /// </summary>
        public bool isRemoteControl;//??
        /// <summary>
        /// 经度
        /// </summary>
        public double longitude;
        /// <summary>
        /// 纬度
        /// </summary>
        public double latitude;
        /// <summary>
        /// 交付状态
        /// </summary>
        public string deliverstatus;
        /// <summary>
        /// 住宅类型 Zigbee, Buspro, A
        /// </summary>
        public string homeType;
        /// <summary>
        /// 区域服务器
        /// </summary>
        public string regionUrl;
        /// <summary>
        /// emq服务器
        /// </summary>
        public string emqUrl;
        /// <summary>
        /// 住宅区域Id
        /// </summary>
        public string homeRegionId;
        /// <summary>
        /// 是否允许创建场景
        /// </summary>
        public bool isAllowCreateScene;//??
        /// <summary>
        /// 是否绑定网关
        /// </summary>
        public bool isBindGateway;
        /// <summary>
        /// 调试人员ID
        /// </summary>
        public string debugStaffUserId;
        /// <summary>
        /// 调试权限是否打开
        /// </summary>
        public bool debugPerm;
    }
}