rero.ircfw
Class User
java.lang.Object
rero.ircfw.User
- All Implemented Interfaces:
- Comparable, FrameworkConstants
- public class User
- extends Object
- implements Comparable, 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
channels
protected HashMap channels
address
protected String address
idle
protected long idle
User
public User(String nick)
setNick
public void setNick(String n)
getNick
public String getNick()
compareTo
public int compareTo(Object b)
- Specified by:
compareTo
in interface Comparable
getChannelData
public HashMap getChannelData()
- returned HashMap -> key= value= can be used to determine users mode on a channel
getChannels
public Set getChannels()
getModeFor
public int getModeFor(Channel ch)
setModeFor
public void setModeFor(Channel ch,
int modes)
setAddress
public void setAddress(String a)
getAddress
public String getAddress()
getFullAddress
public String getFullAddress()
touch
public void touch()
getIdleTime
public int getIdleTime()
- returns user idle time in seconds
isIdle
public boolean isIdle()
toString
public String toString()