|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSnacCommand
ConnCommand
RateChange
A SNAC command sent when rate limiting information for a rate class changes.
0x01, command 0x0a| Field Summary | |
static int |
CODE_LIMIT_CLEARED
A rate change code indicating that the user is no longer being rate-limited. |
static int |
CODE_LIMITED
A rate change code indicating that the user has been rate-limited and that one or more previously sent commands were ignored. |
static int |
CODE_RATES_CHANGED
A rate change code indicating that rates changed for some reason. |
static int |
CODE_WARNING
A rate change code indicating that the user is in the "warning zone." |
| Fields inherited from class SnacCommand |
SNACFLAG_DEFAULT |
| Constructor Summary | |
|
RateChange(int code,
RateClassInfo rateInfo)
Creates a new outgoing rate change command of the given type and with the given new rate class information. |
protected |
RateChange(SnacPacket packet)
Generates a new rate change command from the given incoming SNAC packet. |
| Method Summary | |
int |
getChangeCode()
Returns a code indicating the type of change that occurred. |
RateClassInfo |
getRateInfo()
The updated rate information for the rate class that changed. |
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_RATES_CHANGED
public static final int CODE_WARNING
public static final int CODE_LIMITED
public static final int CODE_LIMIT_CLEARED
| Constructor Detail |
protected RateChange(SnacPacket packet)
packet - an incoming rate change packet
public RateChange(int code,
RateClassInfo rateInfo)
code - a change code, like CODE_LIMITEDrateInfo - the new rate class information for the class changed| Method Detail |
public final int getChangeCode()
CODE_RATES_CHANGED, CODE_WARNING,
CODE_LIMITED, and CODE_LIMIT_CLEARED.
public final RateClassInfo getRateInfo()
public void writeData(java.io.OutputStream out)
throws java.io.IOException
SnacCommand
writeData in class SnacCommandout - 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 | |||||||||