private void OnGroupExitExec(int idx) { if (idx == 0) { ChatTools.ChatLoadDisplay(true); GameWebAPI.RespData_ChatResignGroupLogic resignGroup = null; GameWebAPI.ChatResignGroupLogic chatResignGroupLogic = new GameWebAPI.ChatResignGroupLogic(); chatResignGroupLogic.SetSendData = delegate(GameWebAPI.ReqData_ChatResignGroupLogic param) { param.chatGroupId = ClassSingleton <ChatData> .Instance.CurrentChatInfo.groupId; }; chatResignGroupLogic.OnReceived = delegate(GameWebAPI.RespData_ChatResignGroupLogic response) { resignGroup = response; }; GameWebAPI.ChatResignGroupLogic request = chatResignGroupLogic; base.StartCoroutine(request.RunOneTime(delegate() { this.AfterChatResignGroup(resignGroup); }, delegate(Exception noop) { RestrictionInput.EndLoad(); }, null)); } }
private void AfterChatResignGroup(GameWebAPI.RespData_ChatResignGroupLogic data) { if (ChatTools.CheckOnFLG(data.result)) { this.SendChatResignGroup("ChatLog-03", StringMaster.GetString("ChatConfirmTitle"), StringMaster.GetString("ChatLeavingSuccess")); } else if (data.resultCode == 90) { this.SendChatResignGroup("ChatLog-03", StringMaster.GetString("SystemConfirm"), StringMaster.GetString("ChatMemberKickNotice")); } else { RestrictionInput.EndLoad(); } }