net.sf.jqql.packets.out
Class AdvancedSearchUserPacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.OutPacket
net.sf.jqql.packets.BasicOutPacket
net.sf.jqql.packets.out.AdvancedSearchUserPacket
public class AdvancedSearchUserPacket
- extends BasicOutPacket
advanced search user request packet.
1. head
2. page count, from 0, 2 byte
3. online or not, 1 byte, 0x01 stands for online, 0x00 for offline
4. have camera or not, 1 byte, 0x01 stands for have, 0x00 for have not, TX QQ 2004 process like this:
if the search targets are the users who have camera, search targets are limited to online user. I don't
known if it can search the offline user.
5. age, 1 byte, stants for index in the combo box.
6. gender, 1 byte, stants for index in the combo box.
7. province, 2 byte, stants for index in the combo box.
8. city, 2 byte, stants for index in the combo box.
9. tail.
高级æœç´¢ç”¨æˆ·çš„请求包:
1. 头部
2. 页数,从0开始,2å—节
3. 在线与å¦ï¼Œ1å—节,0x01表示在线,0x00表示ä¸åœ¨çº¿
4. æ˜¯å¦æœ‰æ‘„åƒå¤´ï¼Œ1å—节,0x01表示有,0x00è¡¨ç¤ºæ— ï¼ŒTX QQ 2004ä¸çš„å¤„ç†æ˜¯å¦‚æžœè¦æŸ¥æ‰¾
有摄åƒå¤´çš„用户,则必须查找在线用户,ä¸çŸ¥é“ä¸è¿™æ ·è¡Œä¸è¡Œ
5. 年龄,1å—节,表示在下拉框ä¸çš„索引
6. 性别,1å—节,表示在下拉框ä¸çš„索引
7. çœä»½ï¼Œ2å—节,表示在下拉框ä¸çš„索引
8. 城市,2å—节,表示在下拉框ä¸çš„索引
9. 尾部
- 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 |
AdvancedSearchUserPacket
public AdvancedSearchUserPacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Parameters:
buf
- length
-
- Throws:
PacketParseException
AdvancedSearchUserPacket
public AdvancedSearchUserPacket(QQUser user)
- construct a default packet which seach for online user, not limited by other conditions.
æž„é€ ä¸€ä¸ªç¼ºçœåŒ…,缺çœåŒ…查找在线用户,其他æ¡ä»¶éƒ½ä¸é™
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
getAgeIndex
public byte getAgeIndex()
- Returns:
- Returns the ageIndex.
setAgeIndex
public void setAgeIndex(byte ageIndex)
- Parameters:
ageIndex
- The ageIndex to set.
getGenderIndex
public byte getGenderIndex()
- Returns:
- Returns the genderIndex.
setGenderIndex
public void setGenderIndex(byte genderIndex)
- Parameters:
genderIndex
- The genderIndex to set.
isHasCam
public boolean isHasCam()
- Returns:
- Returns the hasCam.
setHasCam
public void setHasCam(boolean hasCam)
- Parameters:
hasCam
- The hasCam to set.
getPage
public char getPage()
- Returns:
- Returns the page.
setPage
public void setPage(char page)
- Parameters:
page
- The page to set.
isSearchOnline
public boolean isSearchOnline()
- Returns:
- Returns the searchOnline.
setSearchOnline
public void setSearchOnline(boolean searchOnline)
- Parameters:
searchOnline
- The searchOnline to set.
getCityIndex
public char getCityIndex()
- Returns:
- Returns the cityIndex.
setCityIndex
public void setCityIndex(char cityIndex)
- Parameters:
cityIndex
- The cityIndex to set.
getProvinceIndex
public char getProvinceIndex()
- Returns:
- Returns the provinceIndex.
setProvinceIndex
public void setProvinceIndex(char provinceIndex)
- Parameters:
provinceIndex
- The provinceIndex to set.