public static void GetMyGroups(Action <ResponseEvent> callback) { GetMyGroupsReq getMyGroupsReq = new GetMyGroupsReq { }; Core.Group.GetMyGroups(getMyGroupsReq, eve => callback?.Invoke(eve)); }
public string GetMyGroups(GetMyGroupsReq para, Action <ResponseEvent> callback) { const int subcmd = (int)ProtoCmd.ECmdGetGroupListReq; var response = new NetResponseCallback(GetMyGroupsResponse); var seq = this.Send(para, subcmd, response, callback); Debugger.Log("GetMyGroups_Para {0} {1}", para, seq); return(seq); }