|
||||||||||
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 String |
MOOD_TEXT_PROPERTY
Identifies the mood message property. |
static String |
STATUS_PROPERTY
Identifies the status property. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(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. |
String[] |
getAllLauguages()
Deprecated. |
String[] |
getAllValidSMSNumbers()
Return all the valid SMS numbers. |
BufferedImage |
getAvatar()
Gets the avatar of the current user. |
Date |
getBirthDay()
Gets the birth day of the current user. |
String |
getCity()
Gets the city of the current user. |
String |
getCountry()
Gets the country of the current user. |
String |
getCountryByISOCode()
Gets the country of the current user by the ISO code. |
int |
getCredit()
Gets the credit of the current user. |
String |
getCreditCurrencyUnit()
Gets the credit currency unit of the current user. |
String |
getFullName()
Gets the full name of the current user. |
String |
getHomePageAddress()
Deprecated. |
String |
getHomePhoneNumber()
Gets the home phone number of the current user. |
String |
getId()
Gets the Skype ID (username) of the current user. |
String |
getIntroduction()
Gets the introduction of the current user. |
String |
getIPCountryByISOCode()
Gets the IP country of the current user by the ISO code. |
String |
getLanguageByISOCode()
Get the language by ISO code of the current user. |
String |
getMobilePhoneNumber()
Gets the mobile phone number of the current user. |
String |
getMoodMessage()
Gets the mood message of the current user. |
String |
getOfficePhoneNumber()
Gets the office phone number of the current user. |
String |
getProvince()
Gets the province of the current user. |
int |
getPSTNBalance()
Deprecated. |
String |
getPSTNBalanceCurrencyUnit()
Deprecated. |
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. |
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(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(String[] newValues)
Deprecated. |
void |
setAvatar(BufferedImage newValue)
Sets the avatar of the current user. |
void |
setAvatarByFile(File newValue)
Sets the avatar of the current user by a file . |
void |
setBirthDay(Date newValue)
Sets the birth day of the current user. |
void |
setCallForwarding(boolean on)
Starts or stops the call forwarding function. |
void |
setCity(String newValue)
Sets the city of the current user. |
void |
setCountry(String newValue)
Sets the country of the current user. |
void |
setCountryByISOCode(String newValue)
Sets the country of the current user by the ISO code. |
void |
setFullName(String newValue)
Sets the full name of the current user. |
void |
setHomePageAddress(String newValue)
Deprecated. |
void |
setHomePhoneNumber(String newValue)
Sets the home phone number of the current user. |
void |
setIntroduction(String newValue)
Sets the introduction of the current user. |
void |
setLanguageByISOCode(String newValue)
Sets the language by ISO code of the current user. |
void |
setMobilePhoneNumber(String newValue)
Sets the mobile phone number of the current user. |
void |
setMoodMessage(String newValue)
Sets the mood message of the current user. |
void |
setOfficePhoneNumber(String newValue)
Sets the office phone number of the current user. |
void |
setProvince(String newValue)
Sets the province of the current user. |
void |
setRichMoodMessage(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(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 String STATUS_PROPERTY
public static final 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 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 String getPSTNBalanceCurrencyUnit() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.public String getCreditCurrencyUnit() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.public String getFullName() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.setFullName(String)
public void setFullName(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 Date getBirthDay() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.setBirthDay(Date)
public void setBirthDay(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 String[] getAllLauguages() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.setAllLanguages(String[])
public String getLanguageByISOCode() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.#setLanguage(String)
@Deprecated public void setAllLanguages(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(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 String getCountryByISOCode() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.setCountryByISOCode(String)
,
ISO 3166-1public String getIPCountryByISOCode() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.public void setCountryByISOCode(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-1public String getCountry() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.setCountry(String)
public void setCountry(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 String getProvince() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.setProvince(String)
public void setProvince(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 String getCity() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.setCity(String)
public void setCity(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 String getHomePhoneNumber() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.setHomePhoneNumber(String)
public void setHomePhoneNumber(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 String getOfficePhoneNumber() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.setOfficePhoneNumber(String)
public void setOfficePhoneNumber(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 String getMobilePhoneNumber() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.setMobilePhoneNumber(String)
public void setMobilePhoneNumber(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 String getHomePageAddress() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.setHomePageAddress(String)
public String getWebSiteAddress() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.setWebSiteAddress(String)
@Deprecated public void setHomePageAddress(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(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 String getIntroduction() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.setIntroduction(String)
public void setIntroduction(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 String getMoodMessage() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.setMoodMessage(String)
public void setMoodMessage(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 String getRichMoodMessage() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.setRichMoodMessage(String)
public void setRichMoodMessage(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(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(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 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 String[] getAllValidSMSNumbers() throws SkypeException
SkypeException
- when the connection has gone bad or an ERROR message is received.public final void addPropertyChangeListener(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
SkypeException
removePropertyChangeListener(PropertyChangeListener)
public final void removePropertyChangeListener(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 |