jerklib.events.impl
Class QuitEventImpl

java.lang.Object
  extended by jerklib.events.impl.QuitEventImpl
All Implemented Interfaces:
IRCEvent, QuitEvent

public class QuitEventImpl
extends Object
implements QuitEvent

Author:
mohadib
See Also:
QuitEvent

Nested Class Summary
 
Nested classes/interfaces inherited from interface jerklib.events.IRCEvent
IRCEvent.Type
 
Constructor Summary
QuitEventImpl(String rawEventData, Session session, String who, String userName, String hostName, String msg, List<Channel> chanList)
           
 
Method Summary
 List<Channel> getChannelList()
          returns a list of Channel objects the nick who quit was in
 String getHostName()
          get the host name of the user.
 String getNick()
          returns the nick of who quit
 String getQuitMessage()
          getQuitMessage get the quit message
 String getRawEventData()
          Returns the raw IRC data that makes up this event
 Session getSession()
          Gets session for connection
 IRCEvent.Type getType()
          Used to find out the exact type of event the IRCEvent object is.
 String getUserName()
          Get the username from the hostmask of the quitted
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuitEventImpl

public QuitEventImpl(String rawEventData,
                     Session session,
                     String who,
                     String userName,
                     String hostName,
                     String msg,
                     List<Channel> chanList)
Method Detail

getHostName

public String getHostName()
Description copied from interface: QuitEvent
get the host name of the user.

Specified by:
getHostName in interface QuitEvent
Returns:
the hostname of the quitted.

getUserName

public String getUserName()
Description copied from interface: QuitEvent
Get the username from the hostmask of the quitted

Specified by:
getUserName in interface QuitEvent
Returns:
the username

getNick

public final String getNick()
Description copied from interface: QuitEvent
returns the nick of who quit

Specified by:
getNick in interface QuitEvent
Returns:
the nick who quit

getType

public final 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 final 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 final Session getSession()
Description copied from interface: IRCEvent
Gets session for connection

Specified by:
getSession in interface IRCEvent
Returns:
Session

getQuitMessage

public final String getQuitMessage()
Description copied from interface: QuitEvent
getQuitMessage get the quit message

Specified by:
getQuitMessage in interface QuitEvent
Returns:
the quit message

getChannelList

public final List<Channel> getChannelList()
Description copied from interface: QuitEvent
returns a list of Channel objects the nick who quit was in

Specified by:
getChannelList in interface QuitEvent
Returns:
List of channels nick was in
See Also:
Channel

toString

public String toString()
Overrides:
toString in class Object