|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSnacCommand
SsiCommand
SsiDataModResponse
A SNAC command used to acknowledge the modification of the user's
server-stored data. Normally sent in response to CreateItemsCmd
,
ModifyItemsCmd
, and DeleteItemsCmd
.
CreateItemsCmd
,
ModifyItemsCmd
,
DeleteItemsCmd
0x13
, command 0x0e
Field Summary | |
static int |
RESULT_CANT_ADD_ANOTHER_ROOT_GROUP
A result code indicating that the client attempted to create a second group list. |
static int |
RESULT_ID_TAKEN
A result code indicating that one or more of the items requested to be created cannot be because an item with the same ID already exists. |
static int |
RESULT_MAX_ITEMS
A result code indicating that one or more of the requested items cannot be created because the maximum number of items of that type has been reached. |
static int |
RESULT_NO_ICQ
A result code indicating that ICQ users cannot be added to an AIM buddy list. |
static int |
RESULT_NO_SUCH_ITEM
A result code indicating that one or more of the items requested to be modified or deleted does not exist and thus cannot be modified or deleted. |
static int |
RESULT_SUCCESS
A result code indicating that the requested change was made successfully. |
Fields inherited from class SsiCommand |
CMD_ACTIVATE, CMD_CREATE_ITEMS, CMD_DATA_CHECK, CMD_DATA_REQ, CMD_DELETE_ITEMS, CMD_MOD_ACK, CMD_MODIFY_ITEMS, CMD_POST_MOD, CMD_PRE_MOD, CMD_RIGHTS, CMD_RIGHTS_REQ, CMD_SSI_DATA, CMD_UNCHANGED, FAMILY_INFO, FAMILY_SSI |
Fields inherited from class SnacCommand |
SNACFLAG_DEFAULT |
Constructor Summary | |
|
SsiDataModResponse(int result)
Creates a new outgoing SSI modification response with the given result code. |
protected |
SsiDataModResponse(SnacPacket packet)
Generates a new SSI data modification response command from the given incoming SNAC packet. |
Method Summary | |
int |
getResult()
Returns the result code associated with this SSI modification response. |
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 RESULT_SUCCESS
public static final int RESULT_NO_SUCH_ITEM
public static final int RESULT_CANT_ADD_ANOTHER_ROOT_GROUP
public static final int RESULT_ID_TAKEN
public static final int RESULT_MAX_ITEMS
public static final int RESULT_NO_ICQ
Constructor Detail |
protected SsiDataModResponse(SnacPacket packet)
packet
- an incoming SSI data modification response packetpublic SsiDataModResponse(int result)
result
- a result code, like RESULT_SUCCESS
Method Detail |
public final int getResult()
RESULT_*
constants.
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 |