jerklib.events.impl
Class KickEventImpl

java.lang.Object
  extended by jerklib.events.impl.KickEventImpl
All Implemented Interfaces:
IRCEvent, KickEvent

public class KickEventImpl
extends Object
implements KickEvent

Author:
mohadib
See Also:
KickEvent

Nested Class Summary
 
Nested classes/interfaces inherited from interface jerklib.events.IRCEvent
IRCEvent.Type
 
Constructor Summary
KickEventImpl(String rawEventData, Session session, String byWho, String userName, String hostName, String who, String message, Channel channel)
           
 
Method Summary
 String byWho()
          Gets the nick of the user who did the kicking
 Channel getChannel()
          Gets the channel object someone was kicked from
 String getHostName()
          get the host name of the kicker (the person doing the kicking)
 String getMessage()
          Gets the kick 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 kicker (the person doing the kicking)
 String getWho()
          Gets the nick of who was kicked
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KickEventImpl

public KickEventImpl(String rawEventData,
                     Session session,
                     String byWho,
                     String userName,
                     String hostName,
                     String who,
                     String message,
                     Channel channel)
Method Detail

byWho

public String byWho()
Description copied from interface: KickEvent
Gets the nick of the user who did the kicking

Specified by:
byWho in interface KickEvent
Returns:
nick

getWho

public String getWho()
Description copied from interface: KickEvent
Gets the nick of who was kicked

Specified by:
getWho in interface KickEvent
Returns:
who was kicked

getHostName

public String getHostName()
Description copied from interface: KickEvent
get the host name of the kicker (the person doing the kicking)

Specified by:
getHostName in interface KickEvent
Returns:
the hostname

getUserName

public String getUserName()
Description copied from interface: KickEvent
Get the username from the hostmask of the kicker (the person doing the kicking)

Specified by:
getUserName in interface KickEvent
Returns:
the username

getMessage

public String getMessage()
Description copied from interface: KickEvent
Gets the kick message

Specified by:
getMessage in interface KickEvent
Returns:
message

getChannel

public Channel getChannel()
Description copied from interface: KickEvent
Gets the channel object someone was kicked from

Specified by:
getChannel in interface KickEvent
Returns:
The Channel

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