jerklib.events.impl
Class ServerInformationEventImpl
java.lang.Object
jerklib.events.impl.ServerInformationEventImpl
- All Implemented Interfaces:
- IRCEvent, ServerInformationEvent
public class ServerInformationEventImpl
- extends Object
- implements ServerInformationEvent
- Author:
- mohadib
- See Also:
ServerInformationEvent
ServerInformationEventImpl
public ServerInformationEventImpl(Session session,
String rawEventData,
ServerInformation serverInfo)
getServerInformation
public ServerInformation getServerInformation()
- Description copied from interface:
ServerInformationEvent
- Gets the server information object
- Specified by:
getServerInformation
in interface ServerInformationEvent
- Returns:
- the info
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