net.kano.joscar.snaccmd.buddy
Class BuddyOfflineCmd
java.lang.Object
SnacCommand
BuddyCommand
BuddyOfflineCmd
- public class BuddyOfflineCmd
- extends BuddyCommand
A command sent when a buddy signs off.
- Source of this SNAC:
- AIM server
- SNAC command type:
- Family
0x03
, command 0x0c
Constructor Summary |
protected |
BuddyOfflineCmd(SnacPacket packet)
Generates a buddy signoff command from the given incoming SNAC packet. |
|
BuddyOfflineCmd(java.lang.String sn)
Creates a new outgoing buddy signoff command for the given screenname. |
Method Summary |
java.lang.String |
getScreenname()
Returns the screenname of the buddy who signed off. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BuddyOfflineCmd
protected BuddyOfflineCmd(SnacPacket packet)
- Generates a buddy signoff command from the given incoming SNAC packet.
- Parameters:
packet
- a buddy signoff packet
BuddyOfflineCmd
public BuddyOfflineCmd(java.lang.String sn)
- Creates a new outgoing buddy signoff command for the given screenname.
- Parameters:
sn
- the screenname of the buddy who signed off
getScreenname
public final java.lang.String getScreenname()
- Returns the screenname of the buddy who signed off.
- Returns:
- the screenname of the buddy who signed off
writeData
public void writeData(java.io.OutputStream out)
throws java.io.IOException
- Description copied from class:
SnacCommand
- Writes this command's SNAC data block to the given stream. The SNAC data
block is the data after the first ten bytes of a SNAC packet.
- Specified by:
writeData
in class SnacCommand
- Parameters:
out
- the stream to which to write the SNAC data
- Throws:
java.io.IOException
- if an I/O error occurs
toString
public java.lang.String toString()