Example #1
0
        public string GetGroupByGroupId(GetGroupByGroupIdReq para, Action <ResponseEvent> callback)
        {
            const int subcmd   = (int)ProtoCmd.ECmdGetGroupDetailReq;
            var       response = new NetResponseCallback(GetGroupByGroupIdResponse);
            var       seq      = this.Send(para, subcmd, response, callback);

            Debugger.Log("GetGroupByGroupId_Para {0} {1}", para, seq);
            return(seq);
        }
Example #2
0
        public static void GetGroupByGroupId(GetGroupByGroupIdPara para, Action <ResponseEvent> callback)
        {
            GetGroupByGroupIdReq groupByGroupIdReq = new GetGroupByGroupIdReq
            {
                GroupId = para.GroupId
            };

            Core.Group.GetGroupByGroupId(groupByGroupIdReq, eve => callback?.Invoke(eve));
        }
Example #3
0
        public void GetGroupDetail(Action <ResponseEvent> callback)
        {
            GetGroupByGroupIdReq getGroupByGroupIdReq = new GetGroupByGroupIdReq
            {
                GroupId = this.GroupInfo?.Id
            };

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

            Core.Group.GetGroupByGroupId(getGroupByGroupIdReq, cb);
        }