public void PushedIdSearchDecisionBtn() { ChatTools.ChatLoadDisplay(true); long[] searchResIds = new long[] { long.Parse(this.chatIdInput.value) }; GameWebAPI.RespData_ChatGroupInfo chatGroup = null; GameWebAPI.ChatGroupInfo request = new GameWebAPI.ChatGroupInfo { SetSendData = delegate(GameWebAPI.ReqData_ChatGroupInfo param) { param.chatGroupId = searchResIds; }, OnReceived = delegate(GameWebAPI.RespData_ChatGroupInfo response) { chatGroup = response; } }; base.StartCoroutine(request.RunOneTime(delegate() { RestrictionInput.EndLoad(); this.AfterGetChatGroupInfo(chatGroup); }, delegate(Exception noop) { RestrictionInput.EndLoad(); }, null)); this.chatIdInput.value = null; }
private void SetChatGroupInfo() { long[] searchResIds = new long[] { (long)ClassSingleton <ChatData> .Instance.CurrentChatInfo.groupId }; GameWebAPI.RespData_ChatGroupInfo chatGroupInfo = null; GameWebAPI.ChatGroupInfo request = new GameWebAPI.ChatGroupInfo { SetSendData = delegate(GameWebAPI.ReqData_ChatGroupInfo param) { param.chatGroupId = searchResIds; }, OnReceived = delegate(GameWebAPI.RespData_ChatGroupInfo response) { chatGroupInfo = response; } }; base.StartCoroutine(request.RunOneTime(delegate() { RestrictionInput.EndLoad(); this.AfterGetChatGroupInfo(chatGroupInfo); }, delegate(Exception noop) { RestrictionInput.EndLoad(); }, null)); }
private void AfterGetChatGroupInfo(GameWebAPI.RespData_ChatGroupInfo data) { this.groupNameInputStatus = true; this.commentInputStatus = true; this.groupNameLabel.text = data.groupList[0].groupName; this.groupNameInput.value = data.groupList[0].groupName; this.commentLabel.text = data.groupList[0].comment; this.commentInput.value = data.groupList[0].comment; this.OnClickedCategoryBtn(int.Parse(data.groupList[0].categoryId)); this.OnClickedApprovalBtn(int.Parse(data.groupList[0].approvalType)); this.SetGraySubmitButton(true); }
private void AfterGetChatGroupInfo(GameWebAPI.RespData_ChatGroupInfo data) { if (data.groupList != null && 0 < data.groupList.Length) { CMD_ChatTop.instance.SetChatListUI(data); CMD_ChatTop.instance.chatGroupDefaultText.SetActive(false); base.ClosePanel(false); } else { CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(null, "CMD_ModalMessage", null) as CMD_ModalMessage; cmd_ModalMessage.Title = StringMaster.GetString("ChatConfirmTitle"); cmd_ModalMessage.Info = StringMaster.GetString("ChatIdSearch-04"); } }