|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSnacCommand
ConnCommand
UpdateAdvisory
A SNAC command sent to alert the user that he or she should upgrade to a newer version of AOL Instant Messenger.
0x01
, command 0x13
Field Summary | |
static int |
TYPE_MANDATORY_UPDATE
An update advisory type indicating that the given update is "mandatory," and that the client cannot connect until he or she updates. |
static int |
TYPE_OKAY
An update advisory type indicating that there is nothing to upgrade. |
static int |
TYPE_RECOMMENDED_UPDATE
An update advisory type indicating that the given update is recommended, but not (yet) necessary. |
static int |
TYPE_SYSTEM_BULLETIN
An update advisory type indicating that this is not an update advisory but in fact contains a "message of the day." |
Fields inherited from class SnacCommand |
SNACFLAG_DEFAULT |
Constructor Summary | |
|
UpdateAdvisory(int type)
Creates a new outgoing update advisory command of the given type and with no message. |
|
UpdateAdvisory(int type,
java.lang.String message)
Creates a new outgoing update advisory command with the given type and message. |
protected |
UpdateAdvisory(SnacPacket packet)
Generates a new update advisory command from the given incoming SNAC packet. |
Method Summary | |
int |
getAdvisoryType()
Returns the type of this advisory. |
java.lang.String |
getMessage()
Returns the message associated with this update advisory. |
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 TYPE_MANDATORY_UPDATE
public static final int TYPE_RECOMMENDED_UPDATE
public static final int TYPE_SYSTEM_BULLETIN
public static final int TYPE_OKAY
Constructor Detail |
protected UpdateAdvisory(SnacPacket packet)
packet
- an incoming update advisory packetpublic UpdateAdvisory(int type)
new UpdateAdvisory(type, null)
.
type
- the update advisory type, like TYPE_RECOMMENDED_UPDATE
public UpdateAdvisory(int type, java.lang.String message)
type
- he update advisory type, like TYPE_MANDATORY_UPDATE
message
- a message to be displayed to the userMethod Detail |
public final int getAdvisoryType()
TYPE_MANDATORY_UPDATE
, TYPE_RECOMMENDED_UPDATE
, TYPE_SYSTEM_BULLETIN
, and TYPE_OKAY
.
public final java.lang.String getMessage()
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 |