com.zerjio.JIRC
Class RPL_CHANNELMODEISMessage

java.lang.Object
  extended bycom.zerjio.JIRC.IRCMessage
      extended bycom.zerjio.JIRC.ReplyMessage
          extended bycom.zerjio.JIRC.RPL_CHANNELMODEISMessage

public class RPL_CHANNELMODEISMessage
extends ReplyMessage

This class represents a RPL_CHANNELMODEIS message that is send over an IRC Connection.

It is recommended to take a look to the RFC 1459 to know what this message means, its exact format and how to handle it.


Constructor Summary
RPL_CHANNELMODEISMessage(java.lang.String prefix, java.lang.String params)
          Constructs a RPL_CHANNELMODEIS message with a prefix and its parameters.
 
Method Summary
 java.lang.String getChannelName()
          Returns the channel name of the RPL_CHANNELMODEIS message.
 boolean getI()
          Gets if the i mode is active.
 boolean getK()
          Gets if the k mode is active.
 java.lang.String getKey()
          Gets the key of the channel.
 boolean getL()
          Gets if the l mode is active.
 int getLimit()
          Gets the limit of users.
 boolean getM()
          Gets if the m mode is active.
 boolean getN()
          Gets if the n mode is active.
 boolean getP()
          Gets if the p mode is active.
 boolean getS()
          Gets if the s mode is active.
 boolean getT()
          Gets if the t mode is active.
 
Methods inherited from class com.zerjio.JIRC.ReplyMessage
getComment, getName, getReplyingString
 
Methods inherited from class com.zerjio.JIRC.IRCMessage
asString, asStringWithoutPrefix, getCommand, getHost, getMustBeDiscarded, getNick, getParams, getPrefix, getUsedCount, getUser, isUsed, markAsUsed, mustBeDiscarded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RPL_CHANNELMODEISMessage

public RPL_CHANNELMODEISMessage(java.lang.String prefix,
                                java.lang.String params)
Constructs a RPL_CHANNELMODEIS message with a prefix and its parameters. The command will be 324.

Parameters:
prefix - The RPL_CHANNELMODEIS message prefix.
params - The RPL_CHANNELMODEIS message parameters.
Method Detail

getN

public boolean getN()
Gets if the n mode is active.

Returns:
true if the n mode is active. false otherwise.

getT

public boolean getT()
Gets if the t mode is active.

Returns:
true if the t mode is active. false otherwise.

getI

public boolean getI()
Gets if the i mode is active.

Returns:
true if the i mode is active. false otherwise.

getL

public boolean getL()
Gets if the l mode is active.

Returns:
true if the l mode is active. false otherwise.

getP

public boolean getP()
Gets if the p mode is active.

Returns:
true if the p mode is active. false otherwise.

getS

public boolean getS()
Gets if the s mode is active.

Returns:
true if the s mode is active. false otherwise.

getK

public boolean getK()
Gets if the k mode is active.

Returns:
true if the k mode is active. false otherwise.

getM

public boolean getM()
Gets if the m mode is active.

Returns:
true if the m mode is active. false otherwise.

getLimit

public int getLimit()
Gets the limit of users.

Returns:
The limit of users or -1 if not specified

getKey

public java.lang.String getKey()
Gets the key of the channel.

Returns:
The key of the channel or "" if not specified

getChannelName

public java.lang.String getChannelName()
Returns the channel name of the RPL_CHANNELMODEIS message.

Returns:
The name of the channel that has the modes.