public GroupDataOpPacket(QQClient client) : base(QQCommand.Group_Data_OP_05, true, client) { Type = GroupSubCmd.UPLOAD; Groups = new List <string>(); }
public GroupDataOpPacket(QQUser user) : base(QQCommand.Group_Data_OP, true, user) { Type = GroupSubCmd.UPLOAD; Groups = new List <string>(); }
protected override void ParseBody(ByteBuffer buf) { // 得到操作类型 SubCommand = (GroupSubCmd)buf.Get(); // 回复码 ReplyCode = (ReplyCode)buf.Get(); if (ReplyCode == ReplyCode.OK) { // 如果是下载包,继续解析内容 if (SubCommand == GroupSubCmd.DOWNLOAD) { // 创建list GroupNames = new List<String>(); // 未知4个字节 buf.GetUInt(); // 读取每个组名 while (buf.HasRemaining()) { buf.Get(); GroupNames.Add(Utils.Util.GetString(buf, (byte)0x00, 16)); } } } }