org.walluck.oscar
Class UserInfo

java.lang.Object
  extended byorg.walluck.oscar.UserInfo

public class UserInfo
extends java.lang.Object

Handles user information which is usally seen during a buddyChange event.

Since:
1.0
Version:
1.0
Author:
David Walluck

Nested Class Summary
 class UserInfo.ICQInfo
          Handles user information that is specific to ICQ.
 
Constructor Summary
UserInfo()
          Creates a new user information class.
 
Method Summary
 java.lang.String getAvailableMsg()
          Get the value of availableMsg.
 java.lang.String getAvailableMsgEncoding()
          Get the value of availableMsgEncoding.
 int getCapabilities()
          Get the value of capabilities.
 int getCapabilities2()
          Get the value of capabilities2.
 int getCapabilities3()
          Get the value of capabilities3.
 short getFlags()
          Get the value of flags.
 TLV getIconData()
          Get the value of iconData.
 UserInfo.ICQInfo getIcqInfo()
          Get the value of icqInfo.
 short getIdleTime()
          Get the value of idleTime.
 int getMemberSince()
          Get the value of memberSince.
 int getOnlineSince()
          Get the value of onlineSince.
 int getPresent()
          Get the value of present.
 byte[] getSecureIM()
          Get the value of secureIM.
 int getSessionLen()
          Get the value of sessionLen.
 java.lang.String getSN()
          Get the value of sn.
 int getUnknown001E()
          Get the value of unknown001E.
 float getWarnLevel()
          Get the value of warnLevel.
 boolean hasCap(int capabilities)
          Returns true if the user has a certain capability flag.
 void setAvailableMsg(java.lang.String availableMsg)
          Sets the value of availableMsg.
 void setAvailableMsgEncoding(java.lang.String availableMsgEncoding)
          Sets the value of availableMsgEncoding.
 void setCapabilities(int capabilities)
          Set the value of capabilities.
 void setCapabilities2(int capabilities2)
          Set the value of capabilities2.
 void setCapabilities3(int capabilities3)
          Set the value of capabilities3.
 void setFlags(short flags)
          Set the value of flags.
 void setIconData(TLV iconData)
          Sets the value of iconData.
 void setIcqInfo(UserInfo.ICQInfo icqInfo)
          Set the value of icqInfo.
 void setIdleTime(short idleTime)
          Set the value of idleTime.
 void setMemberSince(int memberSince)
          Set the value of memberSince.
 void setOnlineSince(int onlineSince)
          Set the value of onlineSince.
 void setPresent(int present)
          Sets the value of present.
 void setSecureIM(byte[] secureIM)
          Set the value of secureIM.
 void setSessionLen(int sessionLen)
          Set the value of sessionLen.
 void setSN(java.lang.String sn)
          Set the value of sn.
 void setUnknown001E(int unknown001E)
          Sets the value of unknown001E.
 void setWarnLevel(short warnLevel)
          Set the value of warnLevel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserInfo

public UserInfo()
Creates a new user information class.

Method Detail

getSN

public java.lang.String getSN()
Get the value of sn.

Returns:
value of sn.

setSN

public void setSN(java.lang.String sn)
Set the value of sn.

Parameters:
sn - Value to assign to sn.

getWarnLevel

public float getWarnLevel()
Get the value of warnLevel.

Returns:
value of warnLevel.

setWarnLevel

public void setWarnLevel(short warnLevel)
Set the value of warnLevel.

Parameters:
warnLevel - Value to assign to warnLevel.

getIdleTime

public short getIdleTime()
Get the value of idleTime.

Returns:
value of idleTime.

setIdleTime

public void setIdleTime(short idleTime)
Set the value of idleTime.

Parameters:
idleTime - Value ot assign to idleTime.

getFlags

public short getFlags()
Get the value of flags.

Returns:
value of flags

setFlags

public void setFlags(short flags)
Set the value of flags.

Parameters:
flags - Value to assign to flags.

getMemberSince

public int getMemberSince()
Get the value of memberSince.

Returns:
value of memberSince.

setMemberSince

public void setMemberSince(int memberSince)
Set the value of memberSince.

Parameters:
memberSince - Value to assign to memberSince.

getOnlineSince

public int getOnlineSince()
Get the value of onlineSince.

Returns:
value of onlineSince.

setOnlineSince

public void setOnlineSince(int onlineSince)
Set the value of onlineSince.

Parameters:
onlineSince - to assign to onlineSince.

getSessionLen

public int getSessionLen()
Get the value of sessionLen.

Returns:
value of sessionLen.

setSessionLen

public void setSessionLen(int sessionLen)
Set the value of sessionLen.

Parameters:
sessionLen - Value to assign to sessionLen.

getCapabilities

public int getCapabilities()
Get the value of capabilities.

Returns:
value of capabilities.

setCapabilities

public void setCapabilities(int capabilities)
Set the value of capabilities.

Parameters:
capabilities - Value to assign to capabilities.

getCapabilities2

public int getCapabilities2()
Get the value of capabilities2.

Returns:
value of capabilities2.

setCapabilities2

public void setCapabilities2(int capabilities2)
Set the value of capabilities2.

Parameters:
capabilities2 - Value to assign to capabilities2.

getCapabilities3

public int getCapabilities3()
Get the value of capabilities3.

Returns:
value of capabilities3.

setCapabilities3

public void setCapabilities3(int capabilities3)
Set the value of capabilities3.

Parameters:
capabilities3 - Value to assign to capabilities3.

getSecureIM

public byte[] getSecureIM()
Get the value of secureIM.

Returns:
value of secureIM.

setSecureIM

public void setSecureIM(byte[] secureIM)
Set the value of secureIM.

Parameters:
secureIM - Value to assign to secureIM.

hasCap

public boolean hasCap(int capabilities)
Returns true if the user has a certain capability flag.

Parameters:
capabilities - the capability flag
Returns:
true if the user has this capability, false otherwise
See Also:
AIMConstants

getPresent

public int getPresent()
Get the value of present.

Returns:
value of present.

setPresent

public void setPresent(int present)
Sets the value of present.

Parameters:
present - Value to assign to present.

getUnknown001E

public int getUnknown001E()
Get the value of unknown001E.

Returns:
value of unknown001E.

setUnknown001E

public void setUnknown001E(int unknown001E)
Sets the value of unknown001E.

Parameters:
unknown001E - Value to assign to unknown001E.

getIconData

public TLV getIconData()
Get the value of iconData.

Returns:
value of iconData.

setIconData

public void setIconData(TLV iconData)
Sets the value of iconData.

Parameters:
iconData - Value to assign to iconData.

getAvailableMsg

public java.lang.String getAvailableMsg()
Get the value of availableMsg.

Returns:
value of availableMsg.

setAvailableMsg

public void setAvailableMsg(java.lang.String availableMsg)
Sets the value of availableMsg.

Parameters:
availableMsg - Value to assign to availableMsg.

getAvailableMsgEncoding

public java.lang.String getAvailableMsgEncoding()
Get the value of availableMsgEncoding.

Returns:
value of availableMsgEncoding.

setAvailableMsgEncoding

public void setAvailableMsgEncoding(java.lang.String availableMsgEncoding)
Sets the value of availableMsgEncoding.

Parameters:
availableMsgEncoding - Value to assign to availableMsgEncoding.

getIcqInfo

public UserInfo.ICQInfo getIcqInfo()
Get the value of icqInfo.

Returns:
value of icqInfo.

setIcqInfo

public void setIcqInfo(UserInfo.ICQInfo icqInfo)
Set the value of icqInfo.

Parameters:
icqInfo - Value ot assign to icqInfo.