rero.client.notify
Class NotifyUser
java.lang.Object
rero.client.Feature
rero.client.notify.NotifyUser
- All Implemented Interfaces:
- ChatListener, FrameworkConstants
- public class NotifyUser
- extends Feature
- implements ChatListener, FrameworkConstants
Fields inherited from interface rero.ircfw.interfaces.FrameworkConstants |
$ADDRESS$, $DATA$, $EVENT$, $HOST$, $NICK$, $NUMERIC$, $PARMS$, $RAW$, $SERVER$, $SOURCE$, $TARGET$, $TYPE$, $USER$ |
nickname
protected String nickname
address
protected String address
time
protected long time
signedon
protected boolean signedon
NotifyUser
public NotifyUser(String nick)
signOff
public void signOff()
- a method to tell this object the user has signed off and to take appropriate action
signOn
public void signOn()
getNickname
public String getNickname()
- returns the users nickname
getAddress
public String getAddress()
- returns the users address
isSignedOn
public boolean isSignedOn()
- is the user signed on or not
getTimeOnline
public long getTimeOnline()
- returns total amount of time user has been online (in seconds)
init
public void init()
- Specified by:
init
in class Feature
fireChatEvent
public int fireChatEvent(HashMap eventDescription)
- Specified by:
fireChatEvent
in interface ChatListener
isChatEvent
public boolean isChatEvent(String eventId,
HashMap eventDescription)
- Specified by:
isChatEvent
in interface ChatListener
toString
public String toString()