|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.skype.User
public class User
The User class contains the skype user's information.
For example, you can show the full name of the 'echo123' user by this code:
System.out.println(new User("echo123").getFullName());
| Nested Class Summary | |
|---|---|
static class |
User.BuddyStatus
The BuddyStatus enum contains the buddy status of the skype user. |
static class |
User.Sex
The Sex enum contains the sex constants of the skype user. |
static class |
User.Status
The Status enum contains the online status constants of the skype user. |
| Field Summary | |
|---|---|
static java.lang.String |
MOOD_TEXT_PROPERTY
Identifies the mood message property. |
static java.lang.String |
STATUS_PROPERTY
Identifies the status property. |
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to this user. |
Call |
call()
Start a call to this User. |
boolean |
canLeaveVoiceMail()
Indicates whether the current user can leave voice mails to this user. |
Chat |
chat()
Start a chat to this User. |
boolean |
equals(java.lang.Object compared)
Overridden to compare User obejct based on ID. |
java.lang.String |
getAbout()
Deprecated. |
Call[] |
getAllCalls()
Search all calls to and from this User. |
ChatMessage[] |
getAllChatMessages()
Search for all chatMessages to and from this User. |
java.awt.image.BufferedImage |
getAvatar()
Gets the avatar of this user. |
java.util.Date |
getBirthDay()
Return the birthdate of this User. |
User.BuddyStatus |
getBuddyStatus()
Returns the buddy status of this user. |
java.lang.String |
getCity()
Return the city this User is based in. |
java.lang.String |
getCountry()
Return the country the User is based. |
java.lang.String |
getCountryByISOCode()
Return the country by ISO code the User is based. |
java.lang.Object |
getData(java.lang.String name)
Returns the user data to which this object maps to the specified by the name. |
java.lang.String |
getDisplayName()
Return the displayname of this User. |
java.lang.String |
getFullName()
Return full name of this User. |
java.lang.String |
getHomePageAddress()
Return the homepage URL of this User. |
java.lang.String |
getHomePhone()
Deprecated. |
java.lang.String |
getHomePhoneNumber()
Return the home phone number that is in the User profile. |
java.lang.String |
getId()
Return ID of this User. |
static User |
getInstance(java.lang.String id)
Returns the User object by the specified id. |
java.lang.String |
getIntroduction()
Returns introduction User has provided in his/her profile. |
java.lang.String |
getLanguage()
Return the native language of this User. |
java.lang.String |
getLanguageByISOCode()
Return the native language by ISO code of this User. |
java.util.Date |
getLastOnlineTime()
Return last online time (UNIX timestamp). |
java.lang.String |
getLauguage()
Deprecated. |
java.lang.String |
getMobilePhone()
Deprecated. |
java.lang.String |
getMobilePhoneNumber()
Return the mobile phone number of this User. |
java.lang.String |
getMoodMessage()
Return the mood message of this user. |
java.lang.String |
getOfficePhone()
Deprecated. |
java.lang.String |
getOfficePhoneNumber()
Return the office phone number that is in the User profile. |
User.Status |
getOnlineStatus()
Deprecated. |
java.lang.String |
getProvince()
Return the province the user is based. |
User.Sex |
getSex()
Return the sex of this User. |
java.lang.String |
getSpeedDial()
Gets the speed dial of this user. |
void |
getSpeedDial(java.lang.String newValue)
Sets the speed dial of this user. |
User.Status |
getStatus()
Return the online status of this User. |
int |
getTimeZone()
Gets the time zone of the current user. |
int |
hashCode()
Overridden to provide ID as hashcode. |
boolean |
isAuthorized()
Check if this User is authorized in your contactlist. |
boolean |
isBlocked()
Check if this User is blocked in your contactlist. |
boolean |
isForwardingCalls()
Indicates whether the current user is forwarding calls. |
boolean |
isVideoCapable()
Check if this User has a Skype client that can do video chats. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the PropertyChangeListener from this user. |
ChatMessage |
send(java.lang.String message)
Send this User a chatMessage. |
void |
setAuthorized(boolean on)
Set this user being authorized, or not in your contactlist. |
void |
setBlocked(boolean on)
Set this user being blocked, or not in your contactlist. |
void |
setData(java.lang.String name,
java.lang.Object userData)
Associates the specified user data with the specified name in this object. |
void |
setDisplayName(java.lang.String newValue)
Set a displayname for this User. |
java.lang.String |
toString()
Provide ID as string representation. |
VoiceMail |
voiceMail()
Leave a voicemail for this User. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String STATUS_PROPERTY
public static final java.lang.String MOOD_TEXT_PROPERTY
| Method Detail |
|---|
public static User getInstance(java.lang.String id)
id - whose associated User object is to be returned.
public final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object compared)
equals in class java.lang.Objectcompared - the User to compare to.
public final java.lang.String toString()
toString in class java.lang.Objectpublic final java.lang.String getId()
public final java.lang.String getFullName()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final java.util.Date getBirthDay()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final User.Sex getSex()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
@Deprecated
public final User.Status getOnlineStatus()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final User.Status getStatus()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public java.util.Date getLastOnlineTime()
throws SkypeException
SkypeException - when connection has gone bad.
@Deprecated
public final java.lang.String getLauguage()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final java.lang.String getLanguage()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final java.lang.String getLanguageByISOCode()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final java.lang.String getCountry()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final java.lang.String getCountryByISOCode()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final java.lang.String getProvince()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final java.lang.String getCity()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
@Deprecated
public final java.lang.String getHomePhone()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final java.lang.String getHomePhoneNumber()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
@Deprecated
public final java.lang.String getOfficePhone()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final java.lang.String getOfficePhoneNumber()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
@Deprecated
public final java.lang.String getMobilePhone()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final java.lang.String getMobilePhoneNumber()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final java.lang.String getHomePageAddress()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
@Deprecated
public final java.lang.String getAbout()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final java.lang.String getIntroduction()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public java.lang.String getMoodMessage()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public java.lang.String getSpeedDial()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.#setSpeedDial(String)
public void getSpeedDial(java.lang.String newValue)
throws SkypeException
newValue - the speed dial of this user.
SkypeException - when the connection has gone bad or an ERROR message is received.getSpeedDial()
public int getTimeZone()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.#setTimeZone(int)
public final java.lang.String getDisplayName()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final boolean isVideoCapable()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final User.BuddyStatus getBuddyStatus()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final boolean isAuthorized()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final void setAuthorized(boolean on)
throws SkypeException
on - true if user will be authorized.
SkypeException - when connection to Skype client has gone bad.
public final boolean isBlocked()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final boolean canLeaveVoiceMail()
throws SkypeException
true if the current user can leave voice mails; false otherwise.
SkypeException - when the connection has gone bad or an ERROR message is received.
public final boolean isForwardingCalls()
throws SkypeException
true if the current user is forwarding calls; false otherwise.
SkypeException - when the connection has gone bad or an ERROR message is received.
public final void setBlocked(boolean on)
throws SkypeException
on - true if user will be blocked.
SkypeException - when connection to Skype client has gone bad.
public java.awt.image.BufferedImage getAvatar()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.
public final Call call()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final Chat chat()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final ChatMessage send(java.lang.String message)
throws SkypeException
message - The message to send.
SkypeException - when connection to Skype client has gone bad.
public final VoiceMail voiceMail()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final void setDisplayName(java.lang.String newValue)
throws SkypeException
newValue - the new name to set.
SkypeException - when connection to Skype client has gone bad.
public final ChatMessage[] getAllChatMessages()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final Call[] getAllCalls()
throws SkypeException
SkypeException - when connection to Skype client has gone bad.
public final void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
throws SkypeException
The listener is registered for all bound properties of this user, including the following:
If listener is null, no exception is thrown and no action is performed.
listener - the PropertyChangeListener to be added
SkypeExceptionremovePropertyChangeListener(PropertyChangeListener)public final void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
If listener is null, no exception is thrown and no action is performed.
listener - the PropertyChangeListener to be removedaddPropertyChangeListener(PropertyChangeListener)public final java.lang.Object getData(java.lang.String name)
name - name whose associated user data is to be returned.
Map.get(Object)
public final void setData(java.lang.String name,
java.lang.Object userData)
name - name with which the specified user data is to be associated.userData - user data to be associated with the specified name.Map.put(Object, Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||