Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 private void AfterChatCancelMemberRequest(GameWebAPI.RespData_ChatCancelMemberRequestLogic data)
 {
     if (ChatTools.CheckOnFLG(data.result))
     {
         CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(delegate(int i)
         {
             this.GetUserChatRequestListExec();
         }, "CMD_ModalMessage", null) as CMD_ModalMessage;
         cmd_ModalMessage.Title = StringMaster.GetString("SystemConfirm");
         cmd_ModalMessage.Info  = string.Format(StringMaster.GetString("ChatApply-05"), ClassSingleton <ChatData> .Instance.CurrentChatInfo.groupName);
     }
 }
Ejemplo n.º 3
0
 private void AfterEditChatGroup(GameWebAPI.RespData_EditChatGroupLogic data)
 {
     if (ChatTools.CheckOnFLG(data.result))
     {
         CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(delegate(int i)
         {
             this.< ClosePanel > __BaseCallProxy0(true);
             ClassSingleton <ChatData> .Instance.CurrentChatInfo.groupName = this.groupNameInput.value;
             CMD_ChatWindow.instance.UpdateChatWindowTitle = ClassSingleton <ChatData> .Instance.CurrentChatInfo.groupName;
             CMD_ChatTop.instance.GetUserChatGroupListExec();
         }, "CMD_ModalMessage", null) as CMD_ModalMessage;
         cmd_ModalMessage.Title = StringMaster.GetString("ChatConfirmTitle");
         cmd_ModalMessage.Info  = StringMaster.GetString("ChatGroupUpdateSuccess");
     }
 }
Ejemplo n.º 4
0
 private void AfterDeleteChatGroup(GameWebAPI.RespData_DeleteChatGroupLogic data)
 {
     if (ChatTools.CheckOnFLG(data.result))
     {
         this.UpdateJoinGroupData();
         CMD_ModalMessage cmd_ModalMessage = GUIMain.ShowCommonDialog(delegate(int i)
         {
             this.< ClosePanel > __BaseCallProxy0(false);
             CMD_ChatWindow.instance.ClosePanel(true);
             CMD_ChatTop.instance.GetUserChatGroupListExec();
         }, "CMD_ModalMessage", null) as CMD_ModalMessage;
         cmd_ModalMessage.Title = StringMaster.GetString("SystemConfirm");
         cmd_ModalMessage.Info  = StringMaster.GetString("ChatDeleteSuccess");
     }
 }
Ejemplo n.º 5
0
 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();
     }
 }
Ejemplo n.º 6
0
 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);
     }
 }
Ejemplo n.º 7
0
 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();
         }
     }
 }