| | |
| | | /// <param name="strId"></param>
|
| | | private async System.Threading.Tasks.Task<bool> SetTickIsRead(string strId)
|
| | | {
|
| | | var pra = new { Id = strId };
|
| | | await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/TickIsRead", true, pra);
|
| | | return true;
|
| | | 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;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | /// <param name="rowContr"></param>
|
| | | private async System.Threading.Tasks.Task<bool> DeleteMsg(string strId, FrameListControl frameList, RowLayoutControl rowContr)
|
| | | {
|
| | | var pra = new { Id = strId };
|
| | | var result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/DeletePushMessage", true, pra);
|
| | | if (result == true && frameList != null)
|
| | | string strUrl = "ZigbeeUsers/DeletePushMessage?Id=" + strId;
|
| | |
|
| | | var result = await Common.CommonPage.Instance.DoRequestZigbeeHttpsInterface(strUrl, null, Common.Config.Instance.Token, "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)
|
| | | {
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | |
| | | this.AdjustControlLocation(frameList, rowContr);
|
| | | });
|
| | | }
|
| | | return result;
|
| | | return falge;
|
| | | }
|
| | |
|
| | | /// <summary>
|