| | |
| | | |
| | | var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject (requestObj); |
| | | var revertObj = MainPage.RequestHttps (API.DeletedSubAccount, requestJson); |
| | | if (revertObj.StateCode.ToUpper() == "SUCCESS") { |
| | | if (revertObj.StateCode.ToUpper() == StateCode.SUCCESS) { |
| | | Application.RunOnMainThread (() => { |
| | | subaccountList.Remove (subaccount); |
| | | addSubaccountList (); |
| | |
| | | //var requestObj = new EditSubAccountObj () { Id = subaccount.UserID, Email = addSubaccount, Password = addSubaccountPassword, Remark = addSubaccountReamrk }; |
| | | //var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject (requestObj); |
| | | //var revertObj = MainPage.RequestHttps ("EditSubAccount", requestJson, true); |
| | | //if (revertObj.StateCode.ToUpper() == "SUCCESS") { |
| | | //if (revertObj.StateCode.ToUpper() == StateCode.SUCCESS) { |
| | | // Application.RunOnMainThread (() => { |
| | | // addSubaccountList (); |
| | | // dialog.Close (); |
| | |
| | | var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject (requestObj); |
| | | |
| | | var revertObj = MainPage.RequestHttps (API.BindSubAccount, requestJson); |
| | | if (revertObj.StateCode.ToUpper () == "SUCCESS") { |
| | | if (revertObj.StateCode.ToUpper () == StateCode.SUCCESS) { |
| | | var requestObj2 = new GetSubAccountByDistributedMarkObj () { |
| | | DistributedMark = UserConfig.Instance.CurrentRegion.Id, |
| | | }; |
| | | //var requestObj2 = new GetSubAccountListObj (); |
| | | var requesetJson2 = Newtonsoft.Json.JsonConvert.SerializeObject (requestObj2); |
| | | var requesetRevertObj2 = MainPage.RequestHttps (API.GetSubAccountByDistributedMark, requesetJson2); |
| | | if (requesetRevertObj2.StateCode.ToUpper () == "SUCCESS") { |
| | | if (requesetRevertObj2.StateCode.ToUpper () == StateCode.SUCCESS) { |
| | | var responseDataObj = Newtonsoft.Json.JsonConvert.DeserializeObject<List<SubAccountRes>> (requesetRevertObj2.ResponseData.ToString ()); |
| | | subaccountList = responseDataObj; |
| | | Application.RunOnMainThread (() => { |