| | |
| | | var editbox = new EditText () { |
| | | Height = Application.GetRealHeight (180), |
| | | Width = Application.GetRealWidth (520), |
| | | PlaceholderTextColor = SkinStyle.Current.PlaceholderTextColor, |
| | | PlaceholderText = Language.StringByID (R.MyInternationalizationString.EditPushContent), |
| | | TextAlignment = TextAlignment.Center, |
| | | Radius = (uint)Application.GetRealHeight (10), |
| | | TextColor = SkinStyle.Current.TextColor1, |
| | | BackgroundColor = SkinStyle.Current.LineColor2, |
| | | TextSize = 15, |
| | | PlaceholderTextColor = SkinStyle.Current.PlaceholderTextColor, |
| | | }; |
| | | editMessageView.AddChidren (editbox); |
| | | |
| | |
| | | try { |
| | | var recevieResult = requestWeb (mess,"https://developer.hdlcontrol.com/api/AddPushMessage"); |
| | | var obj = Newtonsoft.Json.JsonConvert.DeserializeObject<PushMessageResult> (recevieResult); |
| | | if (obj.StateCode == "SUCCESS") { |
| | | if (obj.StateCode.ToUpper() == StateCode.SUCCESS) { |
| | | Application.RunOnMainThread (() => { |
| | | new Tip () { MaxWidth = 150, Text = Language.StringByID (R.MyInternationalizationString.SendNotificationsSuccessfully), Direction = AMPopTipDirection.Down, CloseTime = 2 }.Show (btn); |
| | | }); |
| | |
| | | try { |
| | | var recevieResult = requestWeb (mess, "https://developer.hdlcontrol.com/api/GetOnePushMsg"); |
| | | var obj = Newtonsoft.Json.JsonConvert.DeserializeObject<PushMessageResult> (recevieResult); |
| | | if (obj.StateCode == "SUCCESS") { |
| | | if (obj.StateCode.ToUpper() == StateCode.SUCCESS) { |
| | | var msgEntity = Newtonsoft.Json.JsonConvert.DeserializeObject<List<MessageInfoRes>> (obj.ResponseData.ToString ()); |
| | | |
| | | foreach (var msg in msgEntity) { |