|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.skype.Profile
public final class Profile
The Profile class contains the current user's information.
For example, you can get the mood message of the current user by this code:
String moodMessage = Skype.getProfile().getMoodMessage();And you can change it by the following code:
Skype.getProfile().setMoodMessage("Happy!");
| Nested Class Summary | |
|---|---|
static class |
Profile.CallForwardingRule
The CallForwardingRule class contains the information of a call forwarding rule. |
static class |
Profile.Sex
The Sex enum contains the sex constants of the current user. |
static class |
Profile.Status
The Status enum contains the online status constants of the current 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. |
boolean |
canDoSkypeIn()
Indicates whether the current user can do SkypeIn. |
boolean |
canDoSkypeOut()
Indicates whether the current user can do SkypeOut. |
boolean |
canDoVoiceMail()
Indicates whether the current user can do VoiceMail. |
Profile.CallForwardingRule[] |
getAllCallForwardingRules()
Gets the all call forwarding rules of the current user. |
java.lang.String[] |
getAllLauguages()
Deprecated. |
java.lang.String[] |
getAllValidSMSNumbers()
Return all the valid SMS numbers. |
java.awt.image.BufferedImage |
getAvatar()
Gets the avatar of the current user. |
java.util.Date |
getBirthDay()
Gets the birth day of the current user. |
java.lang.String |
getCity()
Gets the city of the current user. |
java.lang.String |
getCountry()
Gets the country of the current user. |
java.lang.String |
getCountryByISOCode()
Gets the country of the current user by the ISO code. |
int |
getCredit()
Gets the credit of the current user. |
java.lang.String |
getCreditCurrencyUnit()
Gets the credit currency unit of the current user. |
java.lang.String |
getFullName()
Gets the full name of the current user. |
java.lang.String |
getHomePageAddress()
Deprecated. |
java.lang.String |
getHomePhoneNumber()
Gets the home phone number of the current user. |
java.lang.String |
getId()
Gets the Skype ID (username) of the current user. |
java.lang.String |
getIntroduction()
Gets the introduction of the current user. |
java.lang.String |
getIPCountryByISOCode()
Gets the IP country of the current user by the ISO code. |
java.lang.String |
getLanguageByISOCode()
Get the language by ISO code of the current user. |
java.lang.String |
getMobilePhoneNumber()
Gets the mobile phone number of the current user. |
java.lang.String |
getMoodMessage()
Gets the mood message of the current user. |
java.lang.String |
getOfficePhoneNumber()
Gets the office phone number of the current user. |
java.lang.String |
getProvince()
Gets the province of the current user. |
int |
getPSTNBalance()
Deprecated. |
java.lang.String |
getPSTNBalanceCurrencyUnit()
Deprecated. |
java.lang.String |
getRichMoodMessage()
Gets the rich mood message of the current user. |
Profile.Sex |
getSex()
Gets the sex of the current user. |
Profile.Status |
getStatus()
Gets the online status of the current user. |
int |
getTimeZone()
Gets the time zone of the current user. |
int |
getWaitTimeBeforeCallForwarding()
Gets the wait time in seconds before starting a call forwarding. |
java.lang.String |
getWebSiteAddress()
Gets the web site address of the current user. |
boolean |
isCallForwarding()
Indicates whether the call forwarding function is on. |
boolean |
isVideoCapable()
Indicates whether the current user has a web camera. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the PropertyChangeListener from this user. |
void |
setAllCallForwardingRules(Profile.CallForwardingRule[] newValues)
Sets the all call forwarding rules of the current user. |
void |
setAllLanguages(java.lang.String[] newValues)
Deprecated. |
void |
setAvatar(java.awt.image.BufferedImage newValue)
Sets the avatar of the current user. |
void |
setAvatarByFile(java.io.File newValue)
Sets the avatar of the current user by a file . |
void |
setBirthDay(java.util.Date newValue)
Sets the birth day of the current user. |
void |
setCallForwarding(boolean on)
Starts or stops the call forwarding function. |
void |
setCity(java.lang.String newValue)
Sets the city of the current user. |
void |
setCountry(java.lang.String newValue)
Sets the country of the current user. |
void |
setCountryByISOCode(java.lang.String newValue)
Sets the country of the current user by the ISO code. |
void |
setFullName(java.lang.String newValue)
Sets the full name of the current user. |
void |
setHomePageAddress(java.lang.String newValue)
Deprecated. |
void |
setHomePhoneNumber(java.lang.String newValue)
Sets the home phone number of the current user. |
void |
setIntroduction(java.lang.String newValue)
Sets the introduction of the current user. |
void |
setLanguageByISOCode(java.lang.String newValue)
Sets the language by ISO code of the current user. |
void |
setMobilePhoneNumber(java.lang.String newValue)
Sets the mobile phone number of the current user. |
void |
setMoodMessage(java.lang.String newValue)
Sets the mood message of the current user. |
void |
setOfficePhoneNumber(java.lang.String newValue)
Sets the office phone number of the current user. |
void |
setProvince(java.lang.String newValue)
Sets the province of the current user. |
void |
setRichMoodMessage(java.lang.String newValue)
Sets the rich mood message of the current user. |
void |
setSex(Profile.Sex newValue)
Sets the sex of the current user by the Profile.Sex enum. |
void |
setStatus(Profile.Status newValue)
Sets the online status of the current user by the Profile.Status enum. |
void |
setTimeZone(int newValue)
Sets the time zone of the current user. |
void |
setWaitTimeBeforeCallForwarding(int newValue)
Sets the wait time in seconds before starting a call forwarding. |
void |
setWebSiteAddress(java.lang.String newValue)
Sets the web site address of the current user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 Profile.Status getStatus()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setStatus(Status)
public void setStatus(Profile.Status newValue)
throws SkypeException
Profile.Status enum.
newValue - the new online status of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getStatus()
public java.lang.String getId()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.
public boolean canDoSkypeOut()
throws SkypeException
true if the current user can do SkypeOut; false otherwise.
SkypeException - when the connection has gone bad or an ERROR message is received.
public boolean canDoSkypeIn()
throws SkypeException
true if the current user can do SkypeIn; false otherwise.
SkypeException - when the connection has gone bad or an ERROR message is received.
public boolean canDoVoiceMail()
throws SkypeException
true if the current user can do VoiceMail; false otherwise.
SkypeException - when the connection has gone bad or an ERROR message is received.
@Deprecated
public int getPSTNBalance()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.
public int getCredit()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.
@Deprecated
public java.lang.String getPSTNBalanceCurrencyUnit()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.
public java.lang.String getCreditCurrencyUnit()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.
public java.lang.String getFullName()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setFullName(String)
public void setFullName(java.lang.String newValue)
throws SkypeException
newValue - the new full name of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getFullName()
public java.util.Date getBirthDay()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setBirthDay(Date)
public void setBirthDay(java.util.Date newValue)
throws SkypeException
newValue - the new birth day of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getBirthDay()
public Profile.Sex getSex()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setSex(Sex)
public void setSex(Profile.Sex newValue)
throws SkypeException
Profile.Sex enum.
newValue - the new sex of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getSex()
@Deprecated
public java.lang.String[] getAllLauguages()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setAllLanguages(String[])
public java.lang.String getLanguageByISOCode()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.#setLanguage(String)
@Deprecated
public void setAllLanguages(java.lang.String[] newValues)
throws SkypeException
newValues - the all new languages of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getAllLauguages()
public void setLanguageByISOCode(java.lang.String newValue)
throws SkypeException
newValues - the language by ISO code of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getAllLauguages()
public java.lang.String getCountryByISOCode()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setCountryByISOCode(String),
ISO 3166-1
public java.lang.String getIPCountryByISOCode()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.
public void setCountryByISOCode(java.lang.String newValue)
throws SkypeException
newValue - the new country of the current user by the ISO code.
SkypeException - when the connection has gone bad or an ERROR message is received.getCountryByISOCode(),
ISO 3166-1
public java.lang.String getCountry()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setCountry(String)
public void setCountry(java.lang.String newValue)
throws SkypeException
newValue - the new country of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getCountry()
public java.lang.String getProvince()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setProvince(String)
public void setProvince(java.lang.String newValue)
throws SkypeException
newValue - the new province of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getProvince()
public java.lang.String getCity()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setCity(String)
public void setCity(java.lang.String newValue)
throws SkypeException
newValue - the new city of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getCity()
public java.lang.String getHomePhoneNumber()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setHomePhoneNumber(String)
public void setHomePhoneNumber(java.lang.String newValue)
throws SkypeException
newValue - the new home phone number of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getHomePhoneNumber()
public java.lang.String getOfficePhoneNumber()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setOfficePhoneNumber(String)
public void setOfficePhoneNumber(java.lang.String newValue)
throws SkypeException
newValue - the new office phone number of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getOfficePhoneNumber()
public java.lang.String getMobilePhoneNumber()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setMobilePhoneNumber(String)
public void setMobilePhoneNumber(java.lang.String newValue)
throws SkypeException
newValue - the new mobile phone number of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getMobilePhoneNumber()
@Deprecated
public java.lang.String getHomePageAddress()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setHomePageAddress(String)
public java.lang.String getWebSiteAddress()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setWebSiteAddress(String)
@Deprecated
public void setHomePageAddress(java.lang.String newValue)
throws SkypeException
newValue - the new home page address of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getHomePageAddress()
public void setWebSiteAddress(java.lang.String newValue)
throws SkypeException
newValue - the new web site address of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getWebSiteAddress()
public java.lang.String getIntroduction()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setIntroduction(String)
public void setIntroduction(java.lang.String newValue)
throws SkypeException
newValue - the new introduction of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getIntroduction()
public java.lang.String getMoodMessage()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setMoodMessage(String)
public void setMoodMessage(java.lang.String newValue)
throws SkypeException
newValue - the new mood message of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getMoodMessage()
public java.lang.String getRichMoodMessage()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setRichMoodMessage(String)
public void setRichMoodMessage(java.lang.String newValue)
throws SkypeException
newValue - the new rich mood message of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getRichMoodMessage()
public void setAvatar(java.awt.image.BufferedImage newValue)
throws SkypeException
newValue - the new image of the avatar.
SkypeException - when the connection has gone bad or an ERROR message is received.setAvatarByFile(File),
getAvatar()
public void setAvatarByFile(java.io.File newValue)
throws SkypeException
newValue - the new image file of the avatar.
SkypeException - when the connection has gone bad or an ERROR message is received.setAvatar(BufferedImage),
getAvatar()
public java.awt.image.BufferedImage getAvatar()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setAvatar(BufferedImage),
setAvatarByFile(File)
public int getTimeZone()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setTimeZone(int)
public void setTimeZone(int newValue)
throws SkypeException
newValue - the new time zone of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getTimeZone()
public boolean isVideoCapable()
throws SkypeException
true if the current user has a web camera; false otherwise.
SkypeException - when the connection has gone bad or an ERROR message is received.
public int getWaitTimeBeforeCallForwarding()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setWaitTimeBeforeCallForwarding(int)
public void setWaitTimeBeforeCallForwarding(int newValue)
throws SkypeException
newValue - the new wait time in seconds before starting a call forwarding.
SkypeException - when the connection has gone bad or an ERROR message is received.getWaitTimeBeforeCallForwarding()
public boolean isCallForwarding()
throws SkypeException
true if the call forwarding function is on; false otherwise.
SkypeException - when the connection has gone bad or an ERROR message is received.setCallForwarding(boolean)
public void setCallForwarding(boolean on)
throws SkypeException
on - if true, starts the call forwarding function; otherwise, stops the call forwarding function
SkypeException - when the connection has gone bad or an ERROR message is received.isCallForwarding()
public Profile.CallForwardingRule[] getAllCallForwardingRules()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.setAllCallForwardingRules(CallForwardingRule[])
public void setAllCallForwardingRules(Profile.CallForwardingRule[] newValues)
throws SkypeException
newValues - the new all call forwarding rules of the current user.
SkypeException - when the connection has gone bad or an ERROR message is received.getAllCallForwardingRules()
public java.lang.String[] getAllValidSMSNumbers()
throws SkypeException
SkypeException - when the connection has gone bad or an ERROR message is received.
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||