jerklib.events.impl
Class InviteEventImpl

java.lang.Object
  extended by jerklib.events.impl.InviteEventImpl
All Implemented Interfaces:
InviteEvent, IRCEvent

public class InviteEventImpl
extends Object
implements InviteEvent

See Also:
InviteEvent

Nested Class Summary
 
Nested classes/interfaces inherited from interface jerklib.events.IRCEvent
IRCEvent.Type
 
Constructor Summary
InviteEventImpl(String channel, String nick, String userName, String hostName, String rawEventData, Session session)
           
 
Method Summary
 String getChannelName()
          Gets the channel to which we were invited to
 String getHostName()
          Gets the hostname of the user who invited us.
 String getNick()
          Gets the nick of the person who invited us
 String getRawEventData()
          getRawEventData() returns the raw IRC data that makes up this event
 Session getSession()
          Gets session for connection
 IRCEvent.Type getType()
          getType() is used to find out the exact type of event the IRCEvent object is.
 String getUserName()
          Gets the username from the user's hostmask
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InviteEventImpl

public InviteEventImpl(String channel,
                       String nick,
                       String userName,
                       String hostName,
                       String rawEventData,
                       Session session)
Method Detail

getType

public IRCEvent.Type getType()
getType() is 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 enum for event.

getChannelName

public String getChannelName()
Gets the channel to which we were invited to

Specified by:
getChannelName in interface InviteEvent
Returns:
the channel we were invited to.

getNick

public String getNick()
Gets the nick of the person who invited us

Specified by:
getNick in interface InviteEvent
Returns:
the nick of the person who invited us

getHostName

public String getHostName()
Description copied from interface: InviteEvent
Gets the hostname of the user who invited us.

Specified by:
getHostName in interface InviteEvent
Returns:
the hostname of the person who invited us

getUserName

public String getUserName()
Description copied from interface: InviteEvent
Gets the username from the user's hostmask

Specified by:
getUserName in interface InviteEvent
Returns:
the username of the user who invited us.

getRawEventData

public String getRawEventData()
getRawEventData() returns the raw IRC data that makes up this event

Specified by:
getRawEventData in interface IRCEvent
Returns:
String 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