|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSnacCommand
LocCommand
UserInfoCmd
A SNAC command containing a certain type of information about another user.
Normally sent in response to a GetInfoCmd
and an OldGetInfoCmd
.
GetInfoCmd
0x02
, command 0x06
Field Summary |
Fields inherited from class LocCommand |
CMD_DIR_INFO, CMD_GET_DIR, CMD_INTEREST_ACK, CMD_NEW_GET_INFO, CMD_OLD_GET_INFO, CMD_RIGHTS_REQ, CMD_RIGHTS_RESP, CMD_SET_DIR, CMD_SET_DIR_ACK, CMD_SET_INFO, CMD_SET_INTERESTS, CMD_USER_INFO, FAMILY_INFO, FAMILY_LOC |
Fields inherited from class SnacCommand |
SNACFLAG_DEFAULT |
Constructor Summary | |
|
UserInfoCmd(FullUserInfo userInfo,
InfoData infoData)
Creates a new outgoing user information command with the given user information block and, well, user information block. |
protected |
UserInfoCmd(SnacPacket packet)
Generates a new user information command from the given incoming SNAC packet. |
Method Summary | |
InfoData |
getInfoData()
Returns the block of "info data" returned in this command. |
FullUserInfo |
getUserInfo()
Returns a user information block for the user whose information is contained in this command. |
java.lang.String |
toString()
|
void |
writeData(java.io.OutputStream out)
Writes this command's SNAC data block to the given stream. |
Methods inherited from class SnacCommand |
getCommand, getFamily, getFlag1, getFlag2 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected UserInfoCmd(SnacPacket packet)
packet
- an incoming user information packetpublic UserInfoCmd(FullUserInfo userInfo, InfoData infoData)
userInfo
- a set of information about the user whose info is being
returnedinfoData
- a block of "info data"Method Detail |
public final FullUserInfo getUserInfo()
public final InfoData getInfoData()
public void writeData(java.io.OutputStream out) throws java.io.IOException
SnacCommand
writeData
in class SnacCommand
out
- the stream to which to write the SNAC data
java.io.IOException
- if an I/O error occurspublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |