Email

Version 1.9 - Updated on 02/14/2017

Contents

Introduction

public interface Email extends Item

Stores Email information.

getIndex

int getIndex()

  • Returns: index

getAddress

String getAddress()

  • Returns: Email address

getType

String getType()

  • Returns: Email type

getPreference

int getPreference()

  • Returns: Preference number

Builder

class Builder

Class used to buildEmail to create or update a contact.

Builder

public Builder ()

Constructor used to initialize an empty Email builder.

Builder

public Builder (Email email)

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

  • Parameters: emailEmail object as obtained from getContacts methods.

setType

public void setType(String type)

Sets the type of the email. Supported types are:

  • business
  • personal
  • other

    • Parameters:
      • type — email type

setPreference

public void setPreference(int preference)

Sets the preference for the email. Lower numbers indicate a higher preference.

  • Parameters:
    • preference — email preference

setIndex

public void setIndex(int index)

Sets the index for the email.

  • Parameters:
    • index — email index

setAddress

public void setAddress(String address)

Sets the email address.

  • Parameters: address — email address

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