jerklib.events.impl
Class NoticeEventImpl

java.lang.Object
  extended by jerklib.events.impl.NoticeEventImpl
All Implemented Interfaces:
IRCEvent, NoticeEvent

public class NoticeEventImpl
extends Object
implements NoticeEvent

Author:
mohadib
See Also:
NoticeEventImpl

Nested Class Summary
 
Nested classes/interfaces inherited from interface jerklib.events.IRCEvent
IRCEvent.Type
 
Constructor Summary
NoticeEventImpl(String rawEventData, Session session, String message, String toWho, String byWho, Channel channel)
           
 
Method Summary
 String byWho()
          Gets who sent the notice event
 Channel getChannel()
          If this is a Channel notice this will return the Channel
 String getNoticeMessage()
          returns notice 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 toString()
           
 String toWho()
          If this notice is sent to a user this will return who
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoticeEventImpl

public NoticeEventImpl(String rawEventData,
                       Session session,
                       String message,
                       String toWho,
                       String byWho,
                       Channel channel)
Method Detail

getNoticeMessage

public String getNoticeMessage()
Description copied from interface: NoticeEvent
returns notice message

Specified by:
getNoticeMessage in interface NoticeEvent
Returns:
notice message

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

toString

public String toString()
Overrides:
toString in class Object

byWho

public String byWho()
Description copied from interface: NoticeEvent
Gets who sent the notice event

Specified by:
byWho in interface NoticeEvent
Returns:
who

getChannel

public Channel getChannel()
Description copied from interface: NoticeEvent
If this is a Channel notice this will return the Channel

Specified by:
getChannel in interface NoticeEvent
Returns:
Channel
See Also:
Channel

toWho

public String toWho()
Description copied from interface: NoticeEvent
If this notice is sent to a user this will return who

Specified by:
toWho in interface NoticeEvent
Returns:
who