From c8c33200e43f05136eca9fc8ff4942f8def31cc6 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期三, 18 八月 2021 10:45:40 +0800 Subject: [PATCH] 2021-08-18 1.完善Android对接LinphoneSDK 2.完善SIP相关接口对接 --- HDL_ON/Entity/DB_ResidenceData.cs | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/HDL_ON/Entity/DB_ResidenceData.cs b/HDL_ON/Entity/DB_ResidenceData.cs index af8b657..896cb34 100644 --- a/HDL_ON/Entity/DB_ResidenceData.cs +++ b/HDL_ON/Entity/DB_ResidenceData.cs @@ -68,6 +68,32 @@ { if (instance == null) { + if(MainPage.NoLoginMode) + { + instance = new DB_ResidenceData(); + instance.functionTypeList.AddRange(new List<ShowFunction> { + ShowFunction.Light,ShowFunction.AC,ShowFunction.Curtain, + ShowFunction.FloorHeating,ShowFunction.Music, + ShowFunction.Electric,ShowFunction.Environmental, + ShowFunction.EnergyMonitoring, + ShowFunction.FreshAir,ShowFunction.DoorLock, + ShowFunction.Panel,ShowFunction.SecurityMonitoring, + ShowFunction.Sensor,ShowFunction.VideoIntercom, + ShowFunction.SecurityCenter + }); + instance.SaveResidenceData(); + instance.residenceImage = "Classification/Room/Roombg.png"; + instance.HomeGateway = new HomeGatewayInfo() + { + homeId = "1396717478877241345", + gatewayId = "1396997079658602498", + mac = "123457890123456", + }; + //鍒濆鍖栦綇瀹呭姛鑳芥暟鎹� + SpatialInfo.CurrentSpatial.InitRoomListFunctions(); + return instance; + } + try { var residenceDataBytes = ReadResidenceInfo(); -- Gitblit v1.8.0