From 2ad5324544c95d79b6d354c11940ff682b1b5f0f Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期二, 02 三月 2021 17:47:45 +0800 Subject: [PATCH] 2021-3-2-1 --- Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/Send.cs | 31 ++++++++++++++++--------------- 1 files changed, 16 insertions(+), 15 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/Send.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/Send.cs index 52da91d..3ee051e 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/Send.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/Send.cs @@ -16,9 +16,10 @@ public static ResponsePackNew GetTimerList () { var jObject = new JObject { }; - jObject.Add ("gatewayId", Int64.Parse (GatewayId)); - jObject.Add ("homeId", Int64.Parse (HomeId)); - var responsePackNew = RequestServerhomeId (jObject, API.GetTimerList); + jObject.Add ("gatewayId", GatewayId); + jObject.Add ("homeId", HomeId); + jObject.Add("pageSize", int.MaxValue); + var responsePackNew = RequestServerhomeId (jObject, API.GetTimerList); return responsePackNew; } /// <summary> @@ -36,8 +37,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,8 +65,8 @@ 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 ("isEnable", timer.isEnable); jObject.Add ("executeUtcTime", Method.GetUtcTime (timer.executeUtcTime)); @@ -94,8 +95,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,8 +123,8 @@ 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 ("isEnable", timer.isEnable); @@ -146,8 +147,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 +161,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; } -- Gitblit v1.8.0