| | |
| | | var jay = jArray [a]; |
| | | timer.id = jay ["id"].ToString (); |
| | | timer.timerName =jay ["timerName"].ToString (); |
| | | timer.RoomName = jay ["room"].ToString (); |
| | | timer.userId = jay ["userId"].ToString (); |
| | | timer.isEnable = Boolean.Parse (jay ["isEnable"].ToString ()); |
| | | timer.executeUtcTime =SmartHome.Method.GetLocalUtcTime(jay ["executeUtcTime"].ToString ()); |
| | | timer.executeUtcTime = SmartHome.Method.GetLocalUtcTime(jay ["executeUtcTime"].ToString ()); |
| | | timer.timerType = (TimerType)System.Enum.Parse (typeof (TimerType), jay ["timerType"].ToString ()); |
| | | var whichDayJson = jay ["whichDay"].ToString (); |
| | | var whichDayAry = Newtonsoft.Json.Linq.JArray.Parse (whichDayJson); |
| | |
| | | |
| | | } else { |
| | | //提示错误 |
| | | SmartHome.Method method = new SmartHome.Method (); |
| | | method.ShowGetTimerListErrorInfo (revertObj.Data.ToString ()); |
| | | IMessageCommon.Current.ShowErrorInfoAlter (revertObj.Code); |
| | | |
| | | //SmartHome.Method method = new SmartHome.Method (); |
| | | //method.ShowGetTimerListErrorInfo (revertObj.Data.ToString ()); |
| | | } |
| | | } catch (Exception ex) { |
| | | Utlis.WriteLine (ex.Message); |