|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soc.message.SOCMessage soc.message.SOCMembers
public class SOCMembers
This message lists all the members of a chat channel
Field Summary | |
---|---|
private java.lang.String |
channel
Name of channel |
private java.util.Vector<java.lang.String> |
members
List of members |
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
SOCMembers(java.lang.String ch,
java.util.Vector<java.lang.String> ml)
Create a Members message. |
Method Summary | |
---|---|
java.lang.String |
getChannel()
|
java.util.Vector<java.lang.String> |
getMembers()
|
static SOCMembers |
parseDataStr(java.lang.String s)
Parse the command String into a Members message |
java.lang.String |
toCmd()
MEMBERS sep channel sep2 members |
static java.lang.String |
toCmd(java.lang.String ch,
java.util.Vector<?> ml)
MEMBERS sep channel sep2 members |
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.util.Vector<java.lang.String> members
private java.lang.String channel
Constructor Detail |
---|
public SOCMembers(java.lang.String ch, java.util.Vector<java.lang.String> ml)
ch
- name of chat channelml
- list of membersMethod Detail |
---|
public java.util.Vector<java.lang.String> getMembers()
public java.lang.String getChannel()
public java.lang.String toCmd()
toCmd
in class SOCMessage
public static java.lang.String toCmd(java.lang.String ch, java.util.Vector<?> ml)
Used from instance method toCmd()
with Strings,
and from other callers with StringConnections for convenience.
ch
- the new channel nameml
- the list of members (String or StringConnection)
public static SOCMembers 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 |