|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSnacCommand
LocCommand
SetInterestsAck
A SNAC command sent to acknowledge the setting of one's chat interests.
Normally sent in response to a SetInterestsCmd
.
SetInterestsCmd
0x02
, command 0x10
Field Summary | |
static int |
CODE_SUCCESS
A result code indicating that one's interests were set successfully. |
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 | |
|
SetInterestsAck()
Creates a new set-chat-interests acknowledgement command with a result code of CODE_SUCCESS . |
|
SetInterestsAck(int code)
Creates a new set-chat-interests acknowledgement command with the given result code. |
protected |
SetInterestsAck(SnacPacket packet)
Generates a new set-chat-interests acknowledgement command from the given incoming SNAC packet. |
Method Summary | |
int |
getResultCode()
Returns this command's result code. |
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 |
Field Detail |
public static final int CODE_SUCCESS
Constructor Detail |
protected SetInterestsAck(SnacPacket packet)
packet
- an incoming set-chat-interests acknowledgement packetpublic SetInterestsAck()
CODE_SUCCESS
.
public SetInterestsAck(int code)
code
- a result code, normally CODE_SUCCESS
Method Detail |
public final int getResultCode()
CODE_SUCCESS
.
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 |