net.sf.jqql.packets.out
Class ModifyInfoPacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.OutPacket
net.sf.jqql.packets.BasicOutPacket
net.sf.jqql.packets.out.ModifyInfoPacket
public class ModifyInfoPacket
- extends BasicOutPacket
modify user info request packet, format:
1. head
2. old password, new password and filed in the ContactInfo, not include the first item of QQ number, separated by 0x1F, ordered as
above, finally, end with 0x1F. Don't begin with 0x1F, if without a field, it's null.
3. tail
修改用户个人信æ¯çš„è¯·æ±‚åŒ…ï¼Œæ ¼å¼æ˜¯:
1. 头部
2. 旧密ç ,新密ç 以åŠContactInfo里é¢çš„域,但是ä¸åŒ…括第一项QQå·ï¼Œç”¨0x1Fåˆ†éš”ï¼Œä¾æ¬¡å¾€ä¸‹æŽ’,最åŽè¦ç”¨
一个0x1F结尾。但是开头ä¸éœ€è¦0x1Fï¼Œå¦‚æžœå“ªä¸ªå—æ®µæ²¡æœ‰ï¼Œå°±æ˜¯ç©º
3. 尾部
- 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.BasicOutPacket |
decryptBody, encryptBody, getBodyBytes, getCryptographStart, getFamily, getHeadLength, getLength, getTailLength, parseHeader, parseTail, postFill, putHead, putTail, toString, validateHeader |
Methods inherited from class net.sf.jqql.packets.OutPacket |
dump, fill, getKey, getNextSeq, getSendCount, getTimeout, needAck, needResend, parseBody, setKey, setSendCount, setTimeout |
Methods inherited from class net.sf.jqql.packets.Packet |
equals, getCommand, getHeader, getSequence, getSource, hash, hashCode, isDuplicated, setDuplicated, setHeader, setSequence |
ModifyInfoPacket
public ModifyInfoPacket(QQUser user)
- constructor
æž„é€ å‡½æ•°
ModifyInfoPacket
public ModifyInfoPacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Parameters:
buf
- length
-
- Throws:
PacketParseException
getPacketName
public String getPacketName()
- Overrides:
getPacketName
in class BasicOutPacket
- Returns:
- descriptive name of packet
包的æè¿°æ€§åç§°
putBody
protected void putBody(ByteBuffer buf)
- Description copied from class:
Packet
- initialize packet body
åˆå§‹åŒ–包体
- Specified by:
putBody
in class Packet
- Parameters:
buf
- ByteBuffer
getContactInfo
public ContactInfo getContactInfo()
- Returns:
- Returns the contactInfo.
setContactInfo
public void setContactInfo(ContactInfo contactInfo)
- Parameters:
contactInfo
- The contactInfo to set.
getNewPassword
public String getNewPassword()
- Returns:
- Returns the newPassword.
setNewPassword
public void setNewPassword(String newPassword)
- Parameters:
newPassword
- The newPassword to set.
getOldPassword
public String getOldPassword()
- Returns:
- Returns the oldPassword.
setOldPassword
public void setOldPassword(String oldPassword)
- Parameters:
oldPassword
- The oldPassword to set.