| | |
| | | public SpatialInfo(string spatialType) |
| | | { |
| | | roomType = "FLOOR"; |
| | | parentId = DB_ResidenceData.Instance.CurrentRegion.RegionID; |
| | | parentId = DB_ResidenceData.Instance.CurrentRegion.id; |
| | | } |
| | | |
| | | public string homeId = ""; |
| | | public string roomId = ""; |
| | | public string roomName = ""; |
| | | //public string roomImage = ""; |
| | |
| | | public string roomType = ""; |
| | | public string parentId = ""; |
| | | public string uid = Guid.NewGuid().ToString(); |
| | | public string floorRoomName = ""; |
| | | public string createTime = ""; |
| | | public string modifyTime = ""; |
| | | ///// <summary> |
| | |
| | | { |
| | | get |
| | | { |
| | | if (MainPage.NoLoginMode) |
| | | { |
| | | if (floors == null) |
| | | { |
| | | floors = new List<SpatialInfo>(); |
| | | } |
| | | return floors; |
| | | } |
| | | |
| | | if (floors == null) |
| | | { |
| | | try |
| | |
| | | MainPage.Log(floorsDataString); |
| | | floors = Newtonsoft.Json.JsonConvert.DeserializeObject<List<SpatialInfo>>(floorsDataString); |
| | | } |
| | | if (floors == null) |
| | | if(floors == null) |
| | | { |
| | | floors = new List<SpatialInfo>(); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | floors = new List<SpatialInfo>(); |
| | | MainPage.Log($"楼层数据初始化失败:{ex.Message}"); |
| | | } |
| | | } |
| | |
| | | { |
| | | get |
| | | { |
| | | if(MainPage.NoLoginMode ) |
| | | { |
| | | if (rooms == null) |
| | | { |
| | | rooms = new List<Room>(); |
| | | } |
| | | return rooms; |
| | | } |
| | | if (rooms == null) |
| | | { |
| | | try |