Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.googlecontacts
Interface GoogleContactsEntry

All Known Implementing Classes:
GoogleContactsEntryImpl

public interface GoogleContactsEntry

Entry of Google Contacts directory.

Author:
Sebastien Vincent

Nested Class Summary
static class GoogleContactsEntry.IMProtocol
          The supported IM protocol
 
Method Summary
 void addHomeMail(String mail)
          Adds a home mail address.
 void addHomePhone(String telephoneNumber)
          Adds a home telephone numbers.
 void addIMAddress(String imAddress, GoogleContactsEntry.IMProtocol protocol)
          Adds an IM address.
 void addMobilePhone(String telephoneNumber)
          Adds a mobile telephone numbers.
 void addWorkMails(String mail)
          Adds a work mail address.
 void addWorkPhone(String telephoneNumber)
          Adds a work telephone number.
 List<String> getAllMails()
          Returns mails.
 List<String> getAllPhones()
          Returns telephone numbers.
 String getFamilyName()
          Get the family name.
 String getFullName()
          Get the full name.
 String getGivenName()
          Get the given name.
 List<String> getHomeMails()
          Returns home mail addresses.
 List<String> getHomePhones()
          Returns home telephone numbers.
 Map<String,GoogleContactsEntry.IMProtocol> getIMAddresses()
          Returns IM addresses.
 List<String> getMobilePhones()
          Returns mobile telephone numbers.
 String getPhoto()
          Get the photo full URI.
 List<String> getWorkMails()
          Returns work mail addresses.
 List<String> getWorkPhones()
          Returns work telephone numbers.
 

Method Detail

getFullName

String getFullName()
Get the full name.

Returns:
full name

getFamilyName

String getFamilyName()
Get the family name.

Returns:
family name

getGivenName

String getGivenName()
Get the given name.

Returns:
given name

getAllMails

List<String> getAllMails()
Returns mails.

Returns:
mails

addHomeMail

void addHomeMail(String mail)
Adds a home mail address.

Parameters:
mail - the mail address

getHomeMails

List<String> getHomeMails()
Returns home mail addresses.

Returns:
home mail addresses

addWorkMails

void addWorkMails(String mail)
Adds a work mail address.

Parameters:
mail - the mail address

getWorkMails

List<String> getWorkMails()
Returns work mail addresses.

Returns:
work mail addresses

getAllPhones

List<String> getAllPhones()
Returns telephone numbers.

Returns:
telephone numbers

addWorkPhone

void addWorkPhone(String telephoneNumber)
Adds a work telephone number.

Parameters:
telephoneNumber - the work telephone number

getWorkPhones

List<String> getWorkPhones()
Returns work telephone numbers.

Returns:
work telephone numbers

addMobilePhone

void addMobilePhone(String telephoneNumber)
Adds a mobile telephone numbers.

Parameters:
telephoneNumber - the mobile telephone number

getMobilePhones

List<String> getMobilePhones()
Returns mobile telephone numbers.

Returns:
mobile telephone numbers

addHomePhone

void addHomePhone(String telephoneNumber)
Adds a home telephone numbers.

Parameters:
telephoneNumber - the home telephone number

getHomePhones

List<String> getHomePhones()
Returns home telephone numbers.

Returns:
home telephone numbers

getPhoto

String getPhoto()
Get the photo full URI.

Returns:
the photo URI or null if there isn't

getIMAddresses

Map<String,GoogleContactsEntry.IMProtocol> getIMAddresses()
Returns IM addresses.

Returns:
Map where key is IM address and value is IM protocol (MSN, ...)

addIMAddress

void addIMAddress(String imAddress,
                  GoogleContactsEntry.IMProtocol protocol)
Adds an IM address.

Parameters:
imAddress - IM address
protocol - IM protocol

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.