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.