Phone

Phone

Version 1.10 - Updated on 05/04/2017

Contents

Introduction

public interface Phone extends Item

Stores phone numbers information.

getIndex

int getIndex()

  • Returns: index

getNumber

String getNumber()

  • Returns: Phone number

getType

String getType()

  • Returns: Phone type

getPreference

int getPreference()

  • Returns: Preference number

Builder

class Builder

Class used to build a phone number to create or update a contact.

Builder

public Builder ()

Constructor used to initialize an empty Phone builder.

Builder

public Builder (Phone phone)

Constructor used to initialize Phone builder with pre-populated Phone values.

  • Parameters:
    • phone — {@link Phone} as obtained from getContacts methods

setType

public void setType(String type)

Sets the type of the phone. Supported types are: - assistant - business - businessfax - callback - car - companymain - home - homefax - mobile - otherfax - pager - primary - primaryfax - radio - school - telex - ttydd - videophone - voipphone - other

  • Parameters:
    • type — phone type

setPreference

public void setPreference(int preference)

Sets the phone preference. Lower numbers indicate a higher preference.

  • Parameters:
    • preference — phone preference

setIndex

public void setIndex(int index)

Sets the phone index.

  • Parameters:
    • index — phone index

setNumber

public void setNumber(String number)

Sets the Phone number.

  • Parameters:
    • number — Phone number

Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.