|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soc.message.SOCMessage soc.message.SOCLeave
public class SOCLeave
This message means that someone is leaveing a channel
Field Summary | |
---|---|
private java.lang.String |
channel
Name of channel |
private java.lang.String |
host
Host name |
private java.lang.String |
nickname
Nickname of the leaveing member |
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
SOCLeave(java.lang.String nn,
java.lang.String hn,
java.lang.String ch)
Create a Leave message. |
Method Summary | |
---|---|
java.lang.String |
getChannel()
|
java.lang.String |
getHost()
|
java.lang.String |
getNickname()
|
static SOCLeave |
parseDataStr(java.lang.String s)
Parse the command String into a Leave message |
java.lang.String |
toCmd()
|
static java.lang.String |
toCmd(java.lang.String nn,
java.lang.String hn,
java.lang.String ch)
|
java.lang.String |
toString()
Simple human-readable representation, used for debug purposes. |
Methods inherited from class soc.message.SOCMessage |
---|
arrayIntoStringBuf, enumIntoStringBuf, getClassNameShort, getMaximumVersion, getMinimumVersion, getType, isSingleLineAndSafe, isSingleLineAndSafe, toMsg |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private java.lang.String nickname
private java.lang.String channel
private java.lang.String host
Constructor Detail |
---|
public SOCLeave(java.lang.String nn, java.lang.String hn, java.lang.String ch)
nn
- nicknamehn
- host namech
- name of chat channelMethod Detail |
---|
public java.lang.String getNickname()
public java.lang.String getHost()
public java.lang.String getChannel()
public java.lang.String toCmd()
toCmd
in class SOCMessage
public static java.lang.String toCmd(java.lang.String nn, java.lang.String hn, java.lang.String ch)
nn
- the necknamehn
- the host namech
- the new channel name
public static SOCLeave parseDataStr(java.lang.String s)
s
- the String to parse
public java.lang.String toString()
SOCMessage
toString
in class SOCMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |