public interface Vcard
Vcard
object.Modifier and Type | Method and Description |
---|---|
void |
addPhoneNumber(java.lang.String phone)
Adds a phone number in the vCard, using the TEL property.
|
void |
addSipAddress(java.lang.String sipAddress)
Adds a SIP address in the vCard, using the IMPP property.
|
java.lang.String |
asVcard4String()
Returns the vCard4 representation of the LinphoneVcard.
|
Vcard |
clone()
Clone a
Vcard . |
void |
editMainSipAddress(java.lang.String sipAddress)
Edits the preferred SIP address in the vCard (or the first one), using the IMPP
property.
|
boolean |
generateUniqueId()
Generates a random unique id for the vCard.
|
java.lang.String |
getEtag()
Gets the eTag of the vCard.
|
java.lang.String |
getFamilyName()
Returns the family name in the N attribute of the vCard, or null if it isn't
set yet.
|
java.lang.String |
getFullName()
Returns the FN attribute of the vCard, or null if it isn't set yet.
|
java.lang.String |
getGivenName()
Returns the given name in the N attribute of the vCard, or null if it isn't set
yet.
|
java.lang.String |
getOrganization()
Gets the Organization of the vCard.
|
java.lang.String[] |
getPhoneNumbers()
Returns the list of phone numbers (as string) in the vCard (all the TEL
attributes) or null.
|
Address[] |
getSipAddresses()
Returns the list of SIP addresses (as LinphoneAddress) in the vCard (all the
IMPP attributes that has an URI value starting by "sip:") or null.
|
boolean |
getSkipValidation()
Returns the skipFieldValidation property of the vcard.
|
java.lang.String |
getUid()
Gets the UID of the vCard.
|
java.lang.String |
getUrl()
Gets the URL of the vCard.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
void |
removePhoneNumber(java.lang.String phone)
Removes a phone number in the vCard (if it exists), using the TEL property.
|
void |
removeSipAddress(java.lang.String sipAddress)
Removes a SIP address in the vCard (if it exists), using the IMPP property.
|
void |
setEtag(java.lang.String etag)
Sets the eTAG of the vCard.
|
void |
setFamilyName(java.lang.String name)
Sets the family name in the N attribute of the vCard.
|
void |
setFullName(java.lang.String name)
Sets the FN attribute of the vCard (which is mandatory).
|
void |
setGivenName(java.lang.String name)
Sets the given name in the N attribute of the vCard.
|
void |
setOrganization(java.lang.String organization)
Fills the Organization field of the vCard.
|
void |
setSkipValidation(boolean skip)
Sets the skipFieldValidation property of the vcard.
|
void |
setUid(java.lang.String uid)
Sets the unique ID of the vCard.
|
void |
setUrl(java.lang.String url)
Sets the URL of the vCard.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
java.lang.String getEtag()
void setEtag(java.lang.String etag)
etag
- the eTAGjava.lang.String getFamilyName()
void setFamilyName(java.lang.String name)
name
- the family name to set for the vCardjava.lang.String getFullName()
void setFullName(java.lang.String name)
name
- the display name to set for the vCardjava.lang.String getGivenName()
void setGivenName(java.lang.String name)
name
- the given name to set for the vCardjava.lang.String getOrganization()
void setOrganization(java.lang.String organization)
organization
- the Organizationjava.lang.String[] getPhoneNumbers()
Address[] getSipAddresses()
Address
objects. LinphoneAddressboolean getSkipValidation()
void setSkipValidation(boolean skip)
skip
- skipFieldValidation property of the vcardjava.lang.String getUid()
void setUid(java.lang.String uid)
uid
- the unique idjava.lang.String getUrl()
void setUrl(java.lang.String url)
url
- the URLvoid addPhoneNumber(java.lang.String phone)
phone
- the phone number to addvoid addSipAddress(java.lang.String sipAddress)
sipAddress
- the SIP address to addjava.lang.String asVcard4String()
void editMainSipAddress(java.lang.String sipAddress)
sipAddress
- the new SIP addressboolean generateUniqueId()
void removePhoneNumber(java.lang.String phone)
phone
- the phone number to removevoid removeSipAddress(java.lang.String sipAddress)
sipAddress
- the SIP address to removevoid setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()