ymsg.network
Class YahooChatUser

Object
  extended byYahooChatUser

public class YahooChatUser
extends Object

Wraps a regular user object to provide the extra information provided by a chat user.

Since:
1.0

Constructor Summary
YahooChatUser()
           
 
Method Summary
 int getAge()
          Returns the age of the user, or zero if not given.
 String getAlias()
          Returns the alias of this user in the current chatroom, or null if no alias.
 String getId()
          Returns the user's Yahoo id.
 String getLocation()
          Returns the location of this user, or null if not specified.
 YahooUser getUser()
          Returns the underlying user object.
 boolean hasWebcam()
          Returns true if this user has an accessible webcam.
 boolean isFemale()
          Returns true if this user's profile shows them as female.
 boolean isMale()
          Returns true if this user's profile shows them as male.
 String toString()
          Returns a string representation of this object.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

YahooChatUser

public YahooChatUser()
Method Detail

getUser

public YahooUser getUser()
Returns the underlying user object.

Returns:
Yahoo user object
Since:
1.0

getId

public String getId()
Returns the user's Yahoo id. A shortcut for getUser().getId() .

Returns:
Yahoo ID of user
Since:
1.0

getAge

public int getAge()
Returns the age of the user, or zero if not given.

Returns:
user's age
Since:
1.0

getAlias

public String getAlias()
Returns the alias of this user in the current chatroom, or null if no alias.

Returns:
user's chat alias, or null
Since:
1.0

getLocation

public String getLocation()
Returns the location of this user, or null if not specified.

Returns:
location string, or null
Since:
1.0

isMale

public boolean isMale()
Returns true if this user's profile shows them as male. (False does not mean they are female!)

Returns:
true if male
Since:
1.0

isFemale

public boolean isFemale()
Returns true if this user's profile shows them as female. (False does not mean they are male!)

Returns:
true if female
Since:
1.0

hasWebcam

public boolean hasWebcam()
Returns true if this user has an accessible webcam.

Returns:
true if webcam available.
Since:
1.0

toString

public String toString()
Returns a string representation of this object.

Returns:
object as a string