public interface Vcard
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 #LinphoneVcard.
|
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)
java.lang.String getFamilyName()
void setFamilyName(java.lang.String name)
java.lang.String getFullName()
void setFullName(java.lang.String name)
java.lang.String getGivenName()
void setGivenName(java.lang.String name)
java.lang.String getOrganization()
void setOrganization(java.lang.String organization)
java.lang.String[] getPhoneNumbers()
Address[] getSipAddresses()
boolean getSkipValidation()
void setSkipValidation(boolean skip)
java.lang.String getUid()
void setUid(java.lang.String uid)
java.lang.String getUrl()
void setUrl(java.lang.String url)
void addPhoneNumber(java.lang.String phone)
void addSipAddress(java.lang.String sipAddress)
java.lang.String asVcard4String()
Vcard clone()
void editMainSipAddress(java.lang.String sipAddress)
boolean generateUniqueId()
void removePhoneNumber(java.lang.String phone)
void removeSipAddress(java.lang.String sipAddress)
void setUserData(java.lang.Object data)
java.lang.Object getUserData()