jerklib.events.impl
Class ChannelListEventImpl

java.lang.Object
  extended by jerklib.events.impl.ChannelListEventImpl
All Implemented Interfaces:
ChannelListEvent, IRCEvent

public class ChannelListEventImpl
extends Object
implements ChannelListEvent

Author:
mohadib
See Also:
ChannelListEvent

Nested Class Summary
 
Nested classes/interfaces inherited from interface jerklib.events.IRCEvent
IRCEvent.Type
 
Constructor Summary
ChannelListEventImpl(String rawEventData, String channelName, String topic, int numUsers, Session session)
           
 
Method Summary
 String getChannelName()
          Gets the channel name
 int getNumberOfUser()
          Egts the number of users in the channel
 String getRawEventData()
          Returns the raw IRC data that makes up this event
 Session getSession()
          Gets session for connection
 String getTopic()
          Gets the topic of the channel
 IRCEvent.Type getType()
          Used to find out the exact type of event the IRCEvent object is.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelListEventImpl

public ChannelListEventImpl(String rawEventData,
                            String channelName,
                            String topic,
                            int numUsers,
                            Session session)
Method Detail

getChannelName

public String getChannelName()
Description copied from interface: ChannelListEvent
Gets the channel name

Specified by:
getChannelName in interface ChannelListEvent
Returns:
the channel name

getNumberOfUser

public int getNumberOfUser()
Description copied from interface: ChannelListEvent
Egts the number of users in the channel

Specified by:
getNumberOfUser in interface ChannelListEvent
Returns:
number of users

getTopic

public String getTopic()
Description copied from interface: ChannelListEvent
Gets the topic of the channel

Specified by:
getTopic in interface ChannelListEvent
Returns:
the channel topic

getType

public IRCEvent.Type getType()
Description copied from interface: IRCEvent
Used to find out the exact type of event the IRCEvent object is. The IRCEvent object can be cast into a more specific event object to get access to convience methods for the specific event types.

Specified by:
getType in interface IRCEvent
Returns:
Type of event

getRawEventData

public String getRawEventData()
Description copied from interface: IRCEvent
Returns the raw IRC data that makes up this event

Specified by:
getRawEventData in interface IRCEvent
Returns:
Raw IRC event text.

getSession

public Session getSession()
Description copied from interface: IRCEvent
Gets session for connection

Specified by:
getSession in interface IRCEvent
Returns:
Session