Version 1.10 - Updated on 05/04/2017
public interface Contact extends Item
Contact Item - stores the data for each Contact item from the list.
String getId()
String getFirstName()
String getMiddleName()
String getLastName()
String getNickName()
String getNamePrefix()
String getNameSuffix()
String getBirthday()
boolean isInCaseOfEmergency()
boolean isFavorite()
String getNote()
String getSource()
String getVersion()
String getProfession()
String getAnniversary()
String getSpouse()
String getChildren()
String getJobTitle()
String getOrgName()
String getOrgUnit()
String getAssistant()
String getGender()
String getRelationship()
String getMaritalStatus()
int getTimezone()
String getCreationDate()
String getModifiedDate()
ItemList<Address> getAddressList()
ItemList<Phone> getPhoneList()
ItemList<Email> getEmailList()
ItemList<IM> getiMList()
ItemList<WebPage> getWebPageList()
class Builder
Class used to create a request to create or update a Contact.
public Builder ()
Constructor used to initialize an empty Contact builder object.
public Builder (Contact contact)
Constructor used to initialize Contact builder with pre-populated Contact
values.
contact
— Contact object as obtained from getContacts
methods.public void setFirstName(String firstName)
Sets the first name.
firstName
— first namepublic void setMiddleName(String middleName)
Sets the middle name.
middleName
— middle namepublic void setLastName(String lastName)
Sets the last name.
lastName
— last namepublic void setNickName(String nickName)
Sets the nickname.
nickName
— nicknamepublic void setNamePrefix(String namePrefix)
Sets the name prefix.
namePrefix
— name prefixpublic void setNameSuffix(String nameSuffix)
Sets the name suffix.
nameSuffix
— name suffixpublic void setBirthday(String birthday)
Sets the birthday of the contact in format YYYY-MM-DD
.
birthday
— birthday of the contact.public void setInCaseOfEmergency(boolean inCaseOfEmergency)
Determines if the contact is an emergency contact. Maximum 3 contacts can be defined as emergency contacts.
inCaseOfEmergency
— set to true if the contact is an emergency contact, false otherwise.public void setFavorite(boolean favorite)
Adds the contact to favorites.
favorite
— Set to true if the contact is added to favorites, false otherwise.public void setNote(String note)
Adds a note for the contact.
note
— note for the contactpublic void setSource(String source)
Sets the source of the contact.
source
— Source of the contactpublic void setProfession(String profession)
Sets the profession of the contact.
profession
— Profession of the contactpublic void setAnniversary(String anniversary)
Sets the anniversary for the contact in the format YYYY-MM-DD
.
anniversary
— Anniversarypublic void setSpouse(String spouse)
Sets the spouse for the contact.
spouse
— spouse of the contactpublic void setChildren(String children)
Sets the children of the contact.
children
— Children of the contactpublic void setJobTitle(String jobTitle)
Sets the job title of the contact.
jobTitle
— job titlepublic void setOrgName(String orgName)
Sets the organization name of the contact.
orgName
— Organization namepublic void setOrgUnit(String orgUnit)
Sets the organization unit of the contact.
orgUnit
— Organization unitpublic void setAssistant(String assistant)
Sets the assistant’s name.
assistant
— assistant’s namepublic void setGender(String gender)
Sets the gender of the contact.
gender
— genderpublic void setRelationship(String relationship)
Sets the relationship status of the contact.
relationship
— relationship statuspublic void setMaritalStatus(String maritalStatus)
Sets the marital status of the contact.
maritalStatus
— Marital statuspublic void addAddress(Address.Builder addressBuilder)
Adds address information for the contact. Call this method multiple times to add multiple values for address information.
addressBuilder
— Address.Builder
object with address informationpublic void addAddress(Address address)
Adds address information for the contact from pre-populated Address
object. Call this method multiple times to add multiple address information.
address
— Address
object with pre-populated address informationpublic void setAddressList (ArrayList<Address.Builder> addressList)
Sets the address list for the contact.
addressList
— ArrayList of Address.Builder
with Address informationpublic void clearAddressList ()
Deletes all the items from the address list.
public void addPhone(Phone.Builder phoneBuilder)
Adds phone information for the contact. Call this method multiple times to add multiple values of the phone information.
phoneBuilder
— Phone.Builder
object with phone informationpublic void addPhone(Phone phone)
Adds phone information for the contact from pre-populated Phone
object. Call this method multiple times to add multiple values of the phone information.
phone
— Phone
object with Phone informationpublic void setPhoneList (ArrayList<Phone.Builder> phoneList)
Sets the phone list for the contact.
phoneList
— ArrayList of Phone.Builder
with phone informationpublic void clearPhoneList ()
Deletes all items from the phone list.
public void addEmail(Email.Builder emailBuilder)
Adds email information for the contact. Call this method multiple times to add multiple values of the email information.
emailBuilder
— Email.Builder
object with email informationpublic void addEmail(Email email)
Adds email information for the contact from pre-populated Email
object. Call this method multiple times to add multiple values of the email information.
email
— Email
object with pre-populated email informationpublic void setEmailList (ArrayList<Email.Builder> emailList)
Sets the email list for the contact.
emailList
— Email.Builder with Email informationpublic void clearEmailList ()
Deletes all items from the email list.
public void addIM(IM.Builder imBuilder)
Adds IM information for the contact. Call this method multiple times to add multiple values of the IM information.
imBuilder
— IM.Builder
with IM informationpublic void addIM(IM im)
Adds IM information for the contact from pre-populated IM
object. Call this method multiple times to add multiple values of the IM information.
im
— IM
object with pre-populated IM informationpublic void setIMList (ArrayList<IM.Builder> imList)
Sets IM list for the contact.
imList
— ArrayList of [IM.Builder
IM
with IM informationpublic void clearIMList ()
Deletes all items from the IM list.
Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.