rero.client.notify

Class NotifyUser

public class NotifyUser extends Feature implements ChatListener, FrameworkConstants

Field Summary
protected Stringaddress
protected Stringnickname
protected booleansignedon
protected longtime
Constructor Summary
NotifyUser(String nick)
Method Summary
intfireChatEvent(HashMap eventDescription)
StringgetAddress()
returns the users address
StringgetNickname()
returns the users nickname
longgetTimeOnline()
returns total amount of time user has been online (in seconds)
voidinit()
booleanisChatEvent(String eventId, HashMap eventDescription)
booleanisSignedOn()
is the user signed on or not
voidsignOff()
a method to tell this object the user has signed off and to take appropriate action
voidsignOn()
StringtoString()

Field Detail

address

protected String address

nickname

protected String nickname

signedon

protected boolean signedon

time

protected long time

Constructor Detail

NotifyUser

public NotifyUser(String nick)

Method Detail

fireChatEvent

public int fireChatEvent(HashMap eventDescription)

getAddress

public String getAddress()
returns the users address

getNickname

public String getNickname()
returns the users nickname

getTimeOnline

public long getTimeOnline()
returns total amount of time user has been online (in seconds)

init

public void init()

isChatEvent

public boolean isChatEvent(String eventId, HashMap eventDescription)

isSignedOn

public boolean isSignedOn()
is the user signed on or not

signOff

public void signOff()
a method to tell this object the user has signed off and to take appropriate action

signOn

public void signOn()

toString

public String toString()