public class ContactController extends BaseController
httpCallBack| Constructor and Description |
|---|
ContactController() |
| Modifier and Type | Method and Description |
|---|---|
String |
createContact(Contact contact,
int listId)
Create new contact
|
void |
createContactAsync(Contact contact,
int listId,
APICallBack<String> callBack)
Create new contact
|
String |
deleteContact(int listId,
int contactId)
Delete a contact
|
void |
deleteContactAsync(int listId,
int contactId,
APICallBack<String> callBack)
Delete a contact
|
String |
getContact(int listId,
int contactId)
Get a specific contact
|
void |
getContactAsync(int listId,
int contactId,
APICallBack<String> callBack)
Get a specific contact
|
String |
getContacts(int listId)
Get all contacts in a list
|
void |
getContactsAsync(int listId,
APICallBack<String> callBack)
Get all contacts in a list
|
static ContactController |
getInstance()
Singleton pattern implementation
|
String |
removeOptedOutContacts(int listId,
int optOutListId)
Remove all opted out contacts
|
void |
removeOptedOutContactsAsync(int listId,
int optOutListId,
APICallBack<String> callBack)
Remove all opted out contacts
|
String |
updateContact(int listId,
int contactId,
Contact contact)
Update contact
|
void |
updateContactAsync(int listId,
int contactId,
Contact contact,
APICallBack<String> callBack)
Update contact
|
getClientInstance, getHttpCallBack, setClientInstance, setHttpCallBack, validateResponsepublic static ContactController getInstance()
public String createContact(Contact contact, int listId) throws Throwable
contact - Required parameter: contact modellistId - Required parameter: List idThrowablepublic void createContactAsync(Contact contact, int listId, APICallBack<String> callBack) throws com.fasterxml.jackson.core.JsonProcessingException
contact - Required parameter: contact modellistId - Required parameter: List idcom.fasterxml.jackson.core.JsonProcessingExceptionpublic String getContacts(int listId) throws Throwable
listId - Required parameter: Example:Throwablepublic void getContactsAsync(int listId,
APICallBack<String> callBack)
listId - Required parameter: Example:public String updateContact(int listId, int contactId, Contact contact) throws Throwable
listId - Required parameter: Your list idcontactId - Required parameter: Your contact idcontact - Required parameter: Example:Throwablepublic void updateContactAsync(int listId,
int contactId,
Contact contact,
APICallBack<String> callBack)
throws com.fasterxml.jackson.core.JsonProcessingException
listId - Required parameter: Your list idcontactId - Required parameter: Your contact idcontact - Required parameter: Example:com.fasterxml.jackson.core.JsonProcessingExceptionpublic String getContact(int listId, int contactId) throws Throwable
listId - Required parameter: Your contact list id you want to access.contactId - Required parameter: Your contact id you want to access.Throwablepublic void getContactAsync(int listId,
int contactId,
APICallBack<String> callBack)
listId - Required parameter: Your contact list id you want to access.contactId - Required parameter: Your contact id you want to access.public String removeOptedOutContacts(int listId, int optOutListId) throws Throwable
listId - Required parameter: Your list idoptOutListId - Required parameter: Your opt out list idThrowablepublic void removeOptedOutContactsAsync(int listId,
int optOutListId,
APICallBack<String> callBack)
listId - Required parameter: Your list idoptOutListId - Required parameter: Your opt out list idpublic String deleteContact(int listId, int contactId) throws Throwable
listId - Required parameter: Example:contactId - Required parameter: Example:Throwablepublic void deleteContactAsync(int listId,
int contactId,
APICallBack<String> callBack)
listId - Required parameter: Example:contactId - Required parameter: Example:Copyright © 2017. All rights reserved.