jerklib.events.impl
Class WhowasEventImpl

java.lang.Object
  extended by jerklib.events.impl.WhowasEventImpl
All Implemented Interfaces:
IRCEvent, WhowasEvent

public class WhowasEventImpl
extends Object
implements WhowasEvent

Author:
mohadib
See Also:
WhowasEvent

Nested Class Summary
 
Nested classes/interfaces inherited from interface jerklib.events.IRCEvent
IRCEvent.Type
 
Constructor Summary
WhowasEventImpl(String hostName, String userName, String nick, String realName, String rawEventData, Session session)
           
 
Method Summary
 String getHostName()
          get hostname of whoised user
 String getNick()
          get nick who was event is about
 String getRawEventData()
          Returns the raw IRC data that makes up this event
 String getRealName()
          get users realname
 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 username
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhowasEventImpl

public WhowasEventImpl(String hostName,
                       String userName,
                       String nick,
                       String realName,
                       String rawEventData,
                       Session session)
Method Detail

getHostName

public String getHostName()
Description copied from interface: WhowasEvent
get hostname of whoised user

Specified by:
getHostName in interface WhowasEvent
Returns:
hostname

getNick

public String getNick()
Description copied from interface: WhowasEvent
get nick who was event is about

Specified by:
getNick in interface WhowasEvent
Returns:
nick who was event is about

getRealName

public String getRealName()
Description copied from interface: WhowasEvent
get users realname

Specified by:
getRealName in interface WhowasEvent
Returns:
realname

getUserName

public String getUserName()
Description copied from interface: WhowasEvent
get username

Specified by:
getUserName in interface WhowasEvent
Returns:
username

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

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