Class ContactPhoneField
- java.lang.Object
-
- com.avaya.clientservices.contact.fields.ContactField
-
- com.avaya.clientservices.contact.fields.ContactPhoneField
-
- All Implemented Interfaces:
BaseContactField
- Direct Known Subclasses:
EditableContactPhoneField
public class ContactPhoneField extends ContactField
Represents a phone number field associated with a contact. Only one phone number can be default for a given contact.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetCategory()The phone number category.java.lang.StringgetLabel1()The phone number Label1.java.lang.StringgetLabel2()The phone number Label2.java.lang.StringgetPhoneNumber()Phone number.ContactPhoneNumberTypegetType()The phone number type, i.e work.inthashCode()booleanisDefault()Is this the default phone number for the contact?booleanisSpeedDialEnabled()The phone number speed dial flag.java.lang.StringtoString()-
Methods inherited from class com.avaya.clientservices.contact.fields.ContactField
getCapability, getContactProviderSourceType, setContactProviderSourceType
-
-
-
-
Method Detail
-
getPhoneNumber
public java.lang.String getPhoneNumber()
Phone number.- Returns:
- A String containing the phone number.
-
getLabel1
public java.lang.String getLabel1()
The phone number Label1.- Returns:
- A String containing the Label1.
-
getLabel2
public java.lang.String getLabel2()
The phone number Label2.- Returns:
- A String containing the Label2.
-
getCategory
public java.lang.String getCategory()
The phone number category.- Returns:
- A String containing the category.
-
getType
public ContactPhoneNumberType getType()
The phone number type, i.e work.- Returns:
- The phone number type.
-
isSpeedDialEnabled
public boolean isSpeedDialEnabled()
The phone number speed dial flag.- Returns:
- true if speed dial is enabled.
-
isDefault
public boolean isDefault()
Is this the default phone number for the contact?- Returns:
- True if this is the default phone number in the list.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classContactField
-
hashCode
public int hashCode()
- Overrides:
hashCodein classContactField
-
toString
public java.lang.String toString()
- Overrides:
toStringin classContactField
-
-