private IEnumerator RequestChatInfo(GameWebAPI.RespData_ChatRequestMember data)
 {
     if (ChatTools.CheckOnFLG(data.result))
     {
         RequestBase request;
         if (data.approvalType == 1)
         {
             GameWebAPI.UserChatGroupList userChatGroupList = new GameWebAPI.UserChatGroupList();
             userChatGroupList.OnReceived = delegate(GameWebAPI.RespData_UserChatGroupList response)
             {
                 ClassSingleton <ChatData> .Instance.CurrentChatInfo.joinGroupData = response;
             };
             request = userChatGroupList;
         }
         else
         {
             GameWebAPI.UserChatRequestListLogic userChatRequestListLogic = new GameWebAPI.UserChatRequestListLogic();
             userChatRequestListLogic.OnReceived = delegate(GameWebAPI.RespData_UserChatRequestList response)
             {
                 ClassSingleton <ChatData> .Instance.CurrentChatInfo.requestGroupData = response;
             };
             request = userChatRequestListLogic;
         }
         return(request.RunOneTime(new Action(ClassSingleton <ChatData> .Instance.UpdateMaxJoinState), null, null));
     }
     return(null);
 }
    public void chatRoomInRequest()
    {
        ChatTools.ChatLoadDisplay(true);
        GameWebAPI.RespData_ChatRequestMember requestMember     = null;
        GameWebAPI.ChatRequestMember          chatRequestMember = new GameWebAPI.ChatRequestMember();
        chatRequestMember.SetSendData = delegate(GameWebAPI.ReqData_ChatRequestMember param)
        {
            param.chatGroupId = ClassSingleton <ChatData> .Instance.CurrentChatInfo.groupId;
        };
        chatRequestMember.OnReceived = delegate(GameWebAPI.RespData_ChatRequestMember response)
        {
            requestMember = response;
        };
        GameWebAPI.ChatRequestMember request = chatRequestMember;
        APIRequestTask apirequestTask        = new APIRequestTask(request, false);

        apirequestTask.Add(new NormalTask(() => this.RequestChatInfo(requestMember)));
        base.StartCoroutine(request.RunOneTime(delegate()
        {
            RestrictionInput.EndLoad();
            this.AfterChatRequestMember(requestMember);
        }, delegate(Exception noop)
        {
            RestrictionInput.EndLoad();
        }, null));
    }
 private void AfterChatRequestMember(GameWebAPI.RespData_ChatRequestMember data)
 {
     if (ChatTools.CheckOnFLG(data.result))
     {
         CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(delegate(int i)
         {
             this.ClickSearchBackBtn();
         }, "CMD_ModalMessage", null) as CMD_ModalMessage;
         cmd_ModalMessage.Title = StringMaster.GetString("ChatConfirmTitle");
         cmd_ModalMessage.Info  = StringMaster.GetString("ChatSearch-07");
         if (data.approvalType == 1)
         {
             this.UpdateJoinGroupData();
             this.SendJoinMessage();
         }
         else
         {
             this.UpdateRequestGroupData();
         }
     }
 }