|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSnacCommand
ConnCommand
WarningNotification
A SNAC command indicating that the client has been "warned" by another user.
0x01
, command 0x10
Field Summary |
Fields inherited from class SnacCommand |
SNACFLAG_DEFAULT |
Constructor Summary | |
|
WarningNotification(int level)
Creates a new outgoing anonymous warning notification command with the given new client warning level. |
|
WarningNotification(int level,
MiniUserInfo by)
Creates a new outgoing warning notification command with the given properties. |
protected |
WarningNotification(SnacPacket packet)
Creates a new warning notification command from the given incoming SNAC packet. |
Method Summary | |
int |
getNewLevel()
The client's new warning level. |
MiniUserInfo |
getWarner()
A miniature user information block for the user who warned the client, or null if the client was warned anonymously. |
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 WarningNotification(SnacPacket packet)
packet
- the incoming warning notification packetpublic WarningNotification(int level)
new
WarningNotification(level, null)
.
level
- the client's new warning levelpublic WarningNotification(int level, MiniUserInfo by)
level
- the client's new warning levelby
- the user who warned the client, or null
if the
user was warned "anonymously"Method Detail |
public final int getNewLevel()
public final MiniUserInfo getWarner()
null
if the client was warned anonymously.
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 |