CrabtreeOn,印度客户定制APP,迁移2.0平台版本
1
wxr
2023-03-31 d53e6af2c5f17838fa79659614b15a2a1f383399
Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/Send.cs
@@ -16,8 +16,11 @@
        public static ResponsePackNew GetTimerList ()
        {
            var jObject = new JObject { }; 
            jObject.Add ("gatewayId", Int64.Parse (GatewayId));
            jObject.Add ("homeId", Int64.Parse (HomeId));
            jObject.Add ("gatewayId", GatewayId);
            jObject.Add ("homeId", HomeId);
            jObject.Add ("pageSize", 1000);
            jObject.Add ("pageNo", 1);
            var responsePackNew = RequestServerhomeId (jObject, API.GetTimerList);
            return responsePackNew;
        }
@@ -36,8 +39,8 @@
                }
                var deviceDateJObject = new JObject { };
                deviceDateJObject.Add ("gatewayId", Int64.Parse (GatewayId));
                deviceDateJObject.Add ("homeId", Int64.Parse (HomeId));
                deviceDateJObject.Add ("gatewayId", GatewayId);
                deviceDateJObject.Add ("homeId", HomeId);
                var funjArray = new JArray { };
                for (int i = 0; i < timer.controlData.actions.Count; i++) {
                    var fun = timer.controlData.actions [i];
@@ -64,9 +67,10 @@
                deviceDateJObject.Add ("actions", funjArray);
                
                var jObject = new JObject { };
                jObject.Add ("gatewayId", Int64.Parse (GatewayId));
                jObject.Add ("homeId", Int64.Parse (HomeId));
                jObject.Add ("gatewayId", GatewayId);
                jObject.Add ("homeId", HomeId);
                jObject.Add ("timerName", timer.timerName);
                jObject.Add ("room", timer.RoomName);
                jObject.Add ("isEnable", timer.isEnable);
                jObject.Add ("executeUtcTime", Method.GetUtcTime (timer.executeUtcTime));
                jObject.Add ("controlData", deviceDateJObject);
@@ -94,8 +98,8 @@
                }
                var deviceDateJObject = new JObject { };
                deviceDateJObject.Add ("gatewayId", Int64.Parse (GatewayId));
                deviceDateJObject.Add ("homeId", Int64.Parse (HomeId));
                deviceDateJObject.Add ("gatewayId", GatewayId);
                deviceDateJObject.Add ("homeId", HomeId);
                var funjArray = new JArray { };
                for (int i = 0; i < timer.controlData.actions.Count; i++) {
                    var fun = timer.controlData.actions [i];
@@ -122,10 +126,11 @@
                deviceDateJObject.Add ("actions", funjArray);
                var jObject = new JObject { };
                jObject.Add ("gatewayId", Int64.Parse (GatewayId));
                jObject.Add ("homeId", Int64.Parse (HomeId));
                jObject.Add ("gatewayId", GatewayId);
                jObject.Add ("homeId", HomeId);
                jObject.Add ("id", timer.id);
                jObject.Add ("timerName", timer.timerName);
                jObject.Add ("room", timer.RoomName);
                jObject.Add ("isEnable", timer.isEnable);
                jObject.Add ("executeUtcTime", Method.GetUtcTime (timer.executeUtcTime));
                jObject.Add ("controlData", deviceDateJObject);
@@ -146,8 +151,8 @@
        {
            var jObject = new JObject { };
            jObject.Add ("id", Int64.Parse (id));
            jObject.Add ("gatewayId", Int64.Parse (GatewayId));
            jObject.Add ("homeId", Int64.Parse (HomeId));
            jObject.Add ("gatewayId", GatewayId);
            jObject.Add ("homeId", HomeId);
            var responsePackNew = RequestServerhomeId (jObject, API.DeleteTimer);
            return responsePackNew;
        }
@@ -160,8 +165,8 @@
           
            var jObject = new JObject { };
            jObject.Add ("id", timer.id);
            jObject.Add ("gatewayId", Int64.Parse (GatewayId));
            jObject.Add ("homeId", Int64.Parse (HomeId));
            jObject.Add ("gatewayId", GatewayId);
            jObject.Add ("homeId", HomeId);
            var responsePackNew = RequestServerhomeId (jObject, API.IsEnableTimer);
            return responsePackNew;
        }