rero.client.notify
Class NotifyUser

java.lang.Object
  extended byrero.client.Feature
      extended byrero.client.notify.NotifyUser
All Implemented Interfaces:
ChatListener, FrameworkConstants

public class NotifyUser
extends Feature
implements ChatListener, FrameworkConstants


Field Summary
protected  String address
           
protected  String nickname
           
protected  boolean signedon
           
protected  long time
           
 
Fields inherited from class rero.client.Feature
abilities
 
Fields inherited from interface rero.ircfw.interfaces.ChatListener
EVENT_DONE, EVENT_HALT, REMOVE_LISTENER
 
Fields inherited from interface rero.ircfw.interfaces.FrameworkConstants
$ADDRESS$, $DATA$, $EVENT$, $HOST$, $NICK$, $NUMERIC$, $PARMS$, $RAW$, $SERVER$, $SOURCE$, $TARGET$, $TYPE$, $USER$
 
Constructor Summary
NotifyUser(String nick)
           
 
Method Summary
 int fireChatEvent(HashMap eventDescription)
           
 String getAddress()
          returns the users address
 String getNickname()
          returns the users nickname
 long getTimeOnline()
          returns total amount of time user has been online (in seconds)
 void init()
           
 boolean isChatEvent(String eventId, HashMap eventDescription)
           
 boolean isSignedOn()
          is the user signed on or not
 void signOff()
          a method to tell this object the user has signed off and to take appropriate action
 void signOn()
           
 String toString()
           
 
Methods inherited from class rero.client.Feature
cleanup, getCapabilities, installCapabilities, storeDataStructures
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nickname

protected String nickname

address

protected String address

time

protected long time

signedon

protected boolean signedon
Constructor Detail

NotifyUser

public NotifyUser(String nick)
Method Detail

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()