net.sf.jqql.packets.in
Class UserPropertyOpReplyPacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.InPacket
net.sf.jqql.packets.BasicInPacket
net.sf.jqql.packets.in.UserPropertyOpReplyPacket
public class UserPropertyOpReplyPacket
- extends BasicInPacket
reply packet of user property
1. header
2. subcommand, 1 byte
3. initial position of next packet, 2 byte
4. size of part 6, 1 byte
5. QQ number, 4 byte
6. user property byte, known bit as
bit30 -> whether have personal message
7. if have more friend, repeat part 5-6
Note: while part 2 is other value, haven't parse follow format, not 0x01 value commonly
present to TM.
8. tail
用户属性回å¤åŒ…
1. 头部
2. å命令,1å—节
当2部分为0x01时:
3. 下一个包的起始ä½ç½®ï¼Œ2å—节
4. 6部分的长度,1å—节
5. QQå·ï¼Œ4å—节
6. 用户属性å—节,已知ä½å¦‚下
bit30 -> æ˜¯å¦æœ‰ä¸ªæ€§ç¾å
7. 如果有更多好å‹ï¼Œé‡å¤5-6部分
Note: 当2部分为其他值时,尚未仔细解æžè¿‡åŽé¢çš„æ ¼å¼ï¼Œéž0x01值一般出现在TMä¸
8. 尾部
- Author:
- luma
Fields inherited from class net.sf.jqql.packets.Packet |
bodyBuf, bodyDecrypted, command, crypter, ds, duplicated, header, log, sequence, source, user |
Methods inherited from class net.sf.jqql.packets.BasicInPacket |
decryptBody, encryptBody, getBodyBytes, getCryptographStart, getFamily, getHeadLength, getLength, getTailLength, parseHeader, parseTail, putBody, putHead, putTail, toString |
Methods inherited from class net.sf.jqql.packets.Packet |
dump, equals, getCommand, getHeader, getSequence, getSource, hash, hashCode, isDuplicated, setDuplicated, setHeader, setSequence |
subCommand
public byte subCommand
finished
public boolean finished
startPosition
public char startPosition
properties
public List<UserProperty> properties
UserPropertyOpReplyPacket
public UserPropertyOpReplyPacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Throws:
PacketParseException
getPacketName
public String getPacketName()
- Overrides:
getPacketName
in class BasicInPacket
- Returns:
- descriptive name of packet
包的æè¿°æ€§åç§°
parseBody
protected void parseBody(ByteBuffer buf)
throws PacketParseException
- Description copied from class:
Packet
- parse packet body, from begin position of buf
è§£æžåŒ…体,从buf的开头ä½ç½®è§£æžèµ·
- Specified by:
parseBody
in class Packet
- Parameters:
buf
- ByteBuffer
- Throws:
PacketParseException
- if parse error
如果解æžå‡ºé”™