コード例 #1
0
ファイル: Group.cs プロジェクト: CrispyServal/GameOff2020
        public string LeaveGroup(LeaveGroupReq para, Action <ResponseEvent> callback)
        {
            const int subcmd   = (int)ProtoCmd.ECmdQuitGroupReq;
            var       response = new NetResponseCallback(LeaveGroupResponse);
            var       seq      = this.Send(para, subcmd, response, callback);

            Debugger.Log("LeaveGroup_Para {0} {1}", para, seq);
            return(seq);
        }
コード例 #2
0
ファイル: GroupSDK.cs プロジェクト: moto2002/FrameLock
        public void LeaveGroup(Action <ResponseEvent> callback)
        {
            LeaveGroupReq leaveGroupReq = new LeaveGroupReq
            {
                GroupId = this.GroupInfo.Id
            };

            Action <ResponseEvent> cb = eve =>
            {
                this.GroupUtil.SaveGroupInfo(eve, ((LeaveGroupRsp)eve.Data)?.GroupInfo);
                callback?.Invoke(eve);
            };

            Core.Group.LeaveGroup(leaveGroupReq, cb);
        }