| | |
| | | if (common.Type == DeviceType.OnePortWirelessFR) { |
| | | var gateWay = Newtonsoft.Json.JsonConvert.DeserializeObject<OnePortWirelessFR> (gateWayString); |
| | | mac = gateWay.MAC.Replace (".", ""); |
| | | } else if (common.Type == DeviceType.OnePortMqttFR) { |
| | | var gateWay = Newtonsoft.Json.JsonConvert.DeserializeObject<OnePortMqttFR> (gateWayString); |
| | | mac = gateWay.MAC.Replace (".", ""); |
| | | } else if (common.Type == DeviceType.OnePortBus) { |
| | | var gateWay = Newtonsoft.Json.JsonConvert.DeserializeObject<OnePortBus> (gateWayString); |
| | | mac = gateWay.MAC.Replace (".", ""); |
| | |
| | | try { |
| | | var recevieResult = requestWeb (mess); |
| | | var obj = Newtonsoft.Json.JsonConvert.DeserializeObject<PushMessageResult> (recevieResult); |
| | | if (obj.StateCode == "SUCCESS") { |
| | | if (obj.StateCode.ToUpper() == "SUCCESS") { |
| | | Application.RunOnMainThread (() => { |
| | | new Tip () { MaxWidth = 150, Text = Language.StringByID (R.MyInternationalizationString.SynchronousNotificationsSuccessfully), Direction = AMPopTipDirection.Down, CloseTime = 2 }.Show (btn); |
| | | }); |