public void ReplyToInviteExec(int iid, int reply) { if (reply == 1 && ClassSingleton <ChatData> .Instance.CurrentChatInfo.isMaxJoin) { ChatTools.chatGroupMaxJoinDialog(); } else { ChatTools.ChatLoadDisplay(true); this.reqReplyType = reply; GameWebAPI.RespData_ChatReplyToInviteLogic replyToInvite = null; GameWebAPI.ChatReplyToInviteLogic request = new GameWebAPI.ChatReplyToInviteLogic { SetSendData = delegate(GameWebAPI.ReqData_ChatReplyToInviteLogic param) { param.chatMemberInviteId = iid; param.reply = reply; }, OnReceived = delegate(GameWebAPI.RespData_ChatReplyToInviteLogic response) { replyToInvite = response; } }; base.StartCoroutine(request.RunOneTime(delegate() { RestrictionInput.EndLoad(); this.AfterChatReplyToInvite(replyToInvite); }, delegate(Exception noop) { RestrictionInput.EndLoad(); }, null)); } }
private void AfterChatReplyToInvite(GameWebAPI.RespData_ChatReplyToInviteLogic data) { if (ChatTools.CheckOnFLG(data.result)) { CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(delegate(int i) { CMD_ChatModal.instance.ClosePanel(true); this.GetUserChatInviteListExec(); if (this.reqReplyType == 1) { base.StartCoroutine(Singleton <TCPUtil> .Instance.SendSystemMessege(ClassSingleton <ChatData> .Instance.CurrentChatInfo.groupId, DataMng.Instance().UserId, DataMng.Instance().UserName)); } }, "CMD_ModalMessage", null) as CMD_ModalMessage; cmd_ModalMessage.Title = StringMaster.GetString("SystemConfirm"); string format = (this.reqReplyType != 1) ? StringMaster.GetString("ChatInviteReplyNG") : StringMaster.GetString("ChatInviteReplyOK"); cmd_ModalMessage.Info = string.Format(format, ClassSingleton <ChatData> .Instance.CurrentChatInfo.groupName); } }