private async void showPrePaidCardMessage(string memberid, string pincode) { MessageDialog dialog = new MessageDialog("プリペイドカードの情報を取得たいですか?", "メッセージ"); dialog.Commands.Add(new UICommand("Yes", async cmd => { showLoading(); JsonAnalyst result; JsonAnalyst memberInfoResult; string memberType = ""; string money = ""; string point = ""; string pointCanUse = ""; try { result = await new HttpCaller().CallAppService(RequestParam.getGoldUserParam(memberid), RequestParam.getGoldUserUrl()); memberInfoResult = await new HttpCaller().CallAppService(RequestParam.get4URequestParam(memberid, pincode), RequestParam.get4URequestURL()); money = memberInfoResult.GetFourthLevelValue("CurrentState", "Transaction", "PrepayedCardInfo", "AmountsAvailable"); point = memberInfoResult.GetFourthLevelValue("CurrentState", "Transaction", "PointCardInfo", "AmountsAvailable"); if ("".Equals(point)) { point = "0"; } string courtesyLevel = memberInfoResult.GetFourthLevelValue("CurrentState", "Transaction", "PointCardInfo", "CourtesyLevel"); if (int.Parse(courtesyLevel) % 2 == 0) { pointCanUse = "〇"; } else { pointCanUse = "×"; } if ("true".Equals(result.GetFirstLevelValue("success").ToLower())) { string isGoldUser = result.GetSecondLevelValueFromArray("data", "isGoldUser", 0).ToLower(); if ("true".Equals(isGoldUser)) { memberType = "Gold User"; } else { memberType = "非Gold User"; } } else if (result == null || "false".Equals(result.GetFirstLevelValue("success").ToLower())) { memberType = "error"; } } catch (Exception ex) { memberType = "error"; money = "error"; point = "error"; pointCanUse = "error"; } finally { hideLoading(); showMemberInfo(memberid, memberType, money, point, pointCanUse); } }, commandId: 0)); dialog.Commands.Add(new UICommand("No", cmd => { }, commandId: 1)); await dialog.ShowAsync(); }