| | |
| | | var dicData = await this.GetMessageData();
|
| | | //关闭进度条
|
| | | this.CloseProgressBar(dicData == null && showReload == true ? ShowReLoadMode.YES : ShowReLoadMode.NO);
|
| | | |
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //关闭刷新特效
|
| | |
| | | var rowControl = new RowLayoutControl(frameList.rowSpace / 2);
|
| | | frameList.AddChidren(rowControl);
|
| | | rowControl.Name = frameList.ChildrenCount.ToString();
|
| | | rowControl.MainKeys = recordInfo.RegId;
|
| | | rowControl.MainKeys = recordInfo.Id;
|
| | | this.dicAllRow[frameList.Name + "-" + rowControl.Name] = rowControl;
|
| | |
|
| | | //图标(现在测试)
|
| | |
| | | string msg = Language.StringByID(R.MyInternationalizationString.uDeleteMessageMsg);
|
| | | this.ShowMassage(ShowMsgType.Confirm, msg, async () =>
|
| | | {
|
| | | await this.DeleteMsg(recordInfo.RegId, frameList, rowControl);
|
| | | await this.DeleteMsg(recordInfo.Id, frameList, rowControl);
|
| | | });
|
| | | };
|
| | |
|
| | |
| | | if (sender != null)
|
| | | {
|
| | | //标记已读(不管它成功不成功)
|
| | | await this.SetTickIsRead(recordInfo.RegId);
|
| | | await this.SetTickIsRead(recordInfo.Id);
|
| | | }
|
| | | };
|
| | | }
|
| | |
| | | private async System.Threading.Tasks.Task<bool> SetTickIsRead(string strId)
|
| | | {
|
| | | string strUrl = "ZigbeeUsers/TickIsRead?Id=" + strId;
|
| | | var result = await Common.CommonPage.Instance.DoRequestZigbeeHttpsInterface(strUrl, null, Common.Config.Instance.Token, "GET");
|
| | | var revertObj = Newtonsoft.Json.JsonConvert.DeserializeObject<Common.ResponseEntity.ResponsePack>(Encoding.UTF8.GetString(result));
|
| | | //检测是否存在错误信息
|
| | | var falge = UserCenterLogic.CheckNotEorrorMsg(revertObj, "ZigbeeUsers/TickIsRead", null, null);
|
| | | return falge;
|
| | |
|
| | | var result = await Common.CommonPage.Instance.RequestHttpsZigbeeBytesResultAsync(strUrl, null, "GET");
|
| | | if (result == null)
|
| | | {
|
| | | return UserCenterLogic.CheckNotEorrorMsg(null, "ZigbeeUsers/TickIsRead", null, null);
|
| | | }
|
| | | //云端是不会返回东西的
|
| | | return true;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | {
|
| | | string strUrl = "ZigbeeUsers/DeletePushMessage?Id=" + strId;
|
| | |
|
| | | var result = await Common.CommonPage.Instance.DoRequestZigbeeHttpsInterface(strUrl, null, Common.Config.Instance.Token, "GET");
|
| | | var result = await Common.CommonPage.Instance.RequestHttpsZigbeeBytesResultAsync(strUrl, null, "GET");
|
| | | if (result == null)
|
| | | {
|
| | | return UserCenterLogic.CheckNotEorrorMsg(null, "ZigbeeUsers/DeletePushMessage", null, null);
|
| | | }
|
| | | var revertObj = Newtonsoft.Json.JsonConvert.DeserializeObject<Common.ResponseEntity.ResponsePack>(Encoding.UTF8.GetString(result));
|
| | | //检测是否存在错误信息
|
| | | var falge = UserCenterLogic.CheckNotEorrorMsg(revertObj, "ZigbeeUsers/DeletePushMessage", null, null);
|
| | |
|
| | | if (falge == true && frameList != null)
|
| | | //云端是不会返回东西的
|
| | | if (frameList != null)
|
| | | {
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | |
| | | this.AdjustControlLocation(frameList, rowContr);
|
| | | });
|
| | | }
|
| | | return falge;
|
| | | return true;
|
| | | }
|
| | |
|
| | | /// <summary>
|