com.vodafone360.people.engine.contactsync
Class NativeContactsApi.Account

java.lang.Object
  extended by com.vodafone360.people.engine.contactsync.NativeContactsApi.Account
Enclosing class:
NativeContactsApi

public static class NativeContactsApi.Account
extends java.lang.Object

This Account class represents an available account on the device where the native synchronization can be performed.


Field Summary
private  java.lang.String mName
          The name of the account.
private  java.lang.String mType
          The type of the account.
 
Constructor Summary
NativeContactsApi.Account(java.lang.String name, java.lang.String type)
          The Constructor.
 
Method Summary
 java.lang.String getName()
          Gets the name of the account.
 java.lang.String getType()
          Gets the type of the accounts.
 boolean isPeopleAccount()
          Checks if this account is a People Account
 java.lang.String toString()
          Returns a String representation of the account.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mName

private java.lang.String mName
The name of the account.


mType

private java.lang.String mType
The type of the account.

Constructor Detail

NativeContactsApi.Account

public NativeContactsApi.Account(java.lang.String name,
                                 java.lang.String type)
The Constructor.

Parameters:
name - the account name
type - the account type
Method Detail

getName

public java.lang.String getName()
Gets the name of the account.

Returns:
the account name

getType

public java.lang.String getType()
Gets the type of the accounts.

Returns:
the account type

isPeopleAccount

public boolean isPeopleAccount()
Checks if this account is a People Account

Returns:
true if this account is a People Account, false if not

toString

public java.lang.String toString()
Returns a String representation of the account.

Overrides:
toString in class java.lang.Object


JavaDoc