/// <summary> /// 处理得到群信息的回复包 /// <remark>abu 2008-02-22 </remark> /// </summary> /// <param name="buf">The buf.</param> private void ParseGetInfoReply(ByteBuffer buf) { if (ReplyCode == ReplyCode.OK) { // 群信息 Info = new ClusterInfo(); Info.ReadClusterInfo(buf); ClusterId = Info.ClusterId; ExternalId = Info.ExternalId; // 读取成员列表 Members = new List<Member>(); while (buf.HasRemaining()) { Member member = new Member(); member.Read(buf); Members.Add(member); } } }
/// <summary> /// 处理激活临时群回复包 /// <remark>abu 2008-02-22 </remark> /// </summary> /// <param name="buf">The buf.</param> private void ParseActivateTempCluster(ByteBuffer buf) { if (ReplyCode == ReplyCode.OK) { // 临时群类型 Type = (ClusterType)buf.Get(); // 父群内部ID ParentClusterId = buf.GetUInt(); // 临时群内部ID ClusterId = buf.GetUInt(); // 成员信息 Members = new List<Member>(); while (buf.HasRemaining()) { Member member = new Member(); member.QQ = buf.GetUInt(); Members.Add(member); } } }