public class ContactBridge extends BasePIMBridge implements IContact, APIBridge
apiGroup| Constructor and Description |
|---|
ContactBridge(IContact delegate)
Constructor with delegate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
getContact(ContactUid contact,
IContactResultCallback callback)
Get all the details of a contact according to its id
|
void |
getContactPhoto(ContactUid contact,
IContactPhotoResultCallback callback)
Get the contact photo
|
void |
getContacts(IContactResultCallback callback)
Get all contacts
|
void |
getContactsForFields(IContactResultCallback callback,
IContactFieldGroup[] fields)
Get marked fields of all contacts
|
void |
getContactsWithFilter(IContactResultCallback callback,
IContactFieldGroup[] fields,
IContactFilter[] filter)
Get marked fields of all contacts according to a filter
|
IContact |
getDelegate()
Get the delegate implementation.
|
APIResponse |
invoke(APIRequest request)
Invokes the given method specified in the API request object.
|
void |
searchContacts(java.lang.String term,
IContactResultCallback callback)
Search contacts according to a term and send it to the callback
|
void |
searchContactsWithFilter(java.lang.String term,
IContactResultCallback callback,
IContactFilter[] filter)
Search contacts according to a term with a filter and send it to the callback
|
boolean |
setContactPhoto(ContactUid contact,
byte[] pngImage)
Set the contact photo
|
void |
setDelegate(IContact delegate)
Set the delegate implementation.
|
getAPIGroup, getAPIVersion, getJSONParserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAPIGroup, getAPIVersionpublic ContactBridge(IContact delegate)
delegate - The delegate implementing platform specific functions.public final IContact getDelegate()
public final void setDelegate(IContact delegate)
delegate - The delegate implementing platform specific functions.public void getContact(ContactUid contact, IContactResultCallback callback)
getContact in interface IContactcontact - id to search forcallback - called for returnpublic void getContactPhoto(ContactUid contact, IContactPhotoResultCallback callback)
getContactPhoto in interface IContactcontact - id to search forcallback - called for returnpublic void getContacts(IContactResultCallback callback)
getContacts in interface IContactcallback - called for returnpublic void getContactsForFields(IContactResultCallback callback, IContactFieldGroup[] fields)
getContactsForFields in interface IContactcallback - called for returnfields - to get for each Contactpublic void getContactsWithFilter(IContactResultCallback callback, IContactFieldGroup[] fields, IContactFilter[] filter)
getContactsWithFilter in interface IContactcallback - called for returnfields - to get for each Contactfilter - to search forpublic void searchContacts(java.lang.String term,
IContactResultCallback callback)
searchContacts in interface IContactterm - string to searchcallback - called for returnpublic void searchContactsWithFilter(java.lang.String term,
IContactResultCallback callback,
IContactFilter[] filter)
searchContactsWithFilter in interface IContactterm - string to searchcallback - called for returnfilter - to search forpublic boolean setContactPhoto(ContactUid contact, byte[] pngImage)
setContactPhoto in interface IContactcontact - id to assign the photopngImage - photo as byte arraypublic APIResponse invoke(APIRequest request)
invoke in interface APIBridgeinvoke in class BasePIMBridgerequest - APIRequest object containing method name and parameters.