|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectf00f.net.irc.martyr.commands.AbstractInCommand
f00f.net.irc.martyr.commands.AbstractCommand
f00f.net.irc.martyr.commands.IsonCommand
public class IsonCommand
Defines the ISON command, which is used to determine if a user or a list of users is online.
| Field Summary | |
|---|---|
static java.lang.String |
IDENTIFIER_PRIMARY
|
static java.lang.String |
IDENTIFIER_SECONDARY
|
| Fields inherited from class f00f.net.irc.martyr.commands.AbstractInCommand |
|---|
attributes |
| Constructor Summary | |
|---|---|
IsonCommand()
No parameter passed to the ISON is not valid. |
|
IsonCommand(java.util.List<java.lang.String> nicks)
Check online status of a number of nicknames. |
|
IsonCommand(java.lang.String nick)
Check online status of a single nickname. |
|
IsonCommand(java.lang.String dest,
java.util.List<java.lang.String> nicks)
|
|
IsonCommand(java.lang.String dest,
java.lang.String nick)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDest()
Retrieves the target of the ISON command |
java.lang.String |
getIrcIdentifier()
Returns the string IRC uses to identify this command. |
java.util.List<java.lang.String> |
getNicks()
Retrieves the list of nicks that are online after an ISON command |
InCommand |
parse(java.lang.String prefix,
java.lang.String identifier,
java.lang.String params)
Parses a string and produces a formed command object, if it can. |
java.lang.String |
renderParams()
Renders the parameters of this command. |
void |
selfRegister(CommandRegister commandRegister)
Every command should know how to register itself (or not) with the command parsing engine. |
| Methods inherited from class f00f.net.irc.martyr.commands.AbstractCommand |
|---|
render |
| Methods inherited from class f00f.net.irc.martyr.commands.AbstractInCommand |
|---|
getAttribute, getAttributeKeys, getIntParameter, getParameter, getSourceString, getState, setAttribute, setSourceString, updateClientState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String IDENTIFIER_PRIMARY
public static final java.lang.String IDENTIFIER_SECONDARY
| Constructor Detail |
|---|
public IsonCommand()
public IsonCommand(java.lang.String nick)
nick - Nick you want to check the online status of.
public IsonCommand(java.lang.String dest,
java.lang.String nick)
public IsonCommand(java.util.List<java.lang.String> nicks)
nicks - List of nicks you want to check the online status of.
public IsonCommand(java.lang.String dest,
java.util.List<java.lang.String> nicks)
| Method Detail |
|---|
public InCommand parse(java.lang.String prefix,
java.lang.String identifier,
java.lang.String params)
AbstractInCommand
parse in interface InCommandparse in class AbstractInCommandprefix - Prefix of the commandidentifier - ID of the commandparams - Parameters of the command
AbstractInCommand.parse(String, String, String)public java.lang.String renderParams()
AbstractCommand
renderParams in class AbstractCommandAbstractCommand.renderParams()public java.lang.String getIrcIdentifier()
Command
Command.getIrcIdentifier()public void selfRegister(CommandRegister commandRegister)
AbstractInCommand
selfRegister in interface InCommandselfRegister in class AbstractInCommandcommandRegister - Command register we want to register withAbstractInCommand.selfRegister(f00f.net.irc.martyr.CommandRegister)public java.lang.String getDest()
public java.util.List<java.lang.String> getNicks()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||