public class DataSiftDynamicList extends DataSiftApiClient
| Modifier and Type | Class and Description |
|---|---|
static class |
DataSiftDynamicList.ListType |
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD |
static String |
CREATE |
static String |
DELETE |
static String |
EXISTS |
static String |
GET |
static String |
REMOVE |
config| Constructor and Description |
|---|
DataSiftDynamicList(DataSiftConfig config) |
| Modifier and Type | Method and Description |
|---|---|
<T> FutureData<DataSiftResult> |
add(DynamicList list,
List<T> items)
Add one or more items to a dynamic list with the given id
|
FutureData<DynamicList> |
create(DataSiftDynamicList.ListType type,
String name)
Create a new dynamic list with the given name and type
|
FutureData<DataSiftResult> |
delete(DynamicList list)
Delete a dynamic list with the given id
|
<T> FutureData<DataSiftResult> |
exists(DynamicList list,
List<T> items)
Check if one or more items exist in a dynamic list with the given id
|
FutureData<DataSiftResult> |
get()
Retrieve all lists owned by the user given by the API credentials
|
<T> FutureData<DataSiftResult> |
remove(DynamicList list,
List<T> items)
Remove one or more items from a dynamic list with the given id
|
failNotify, newParams, newRequestCallback, performRequest, unwrapFuturepublic static final String GET
public static final String CREATE
public static final String DELETE
public static final String EXISTS
public static final String ADD
public static final String REMOVE
public DataSiftDynamicList(DataSiftConfig config)
public FutureData<DataSiftResult> get()
public FutureData<DynamicList> create(DataSiftDynamicList.ListType type, String name)
type - the type of the list to createname - a user specified string to identify the listpublic FutureData<DataSiftResult> delete(DynamicList list)
list - the list to deletepublic <T> FutureData<DataSiftResult> exists(DynamicList list, List<T> items)
T - the type of the items to check, may be either string or integer,
and must match the type of the listlist - the list to check for itemsitems - the list of items to checkpublic <T> FutureData<DataSiftResult> add(DynamicList list, List<T> items)
T - the type of the items to add, may be either string or integer, and must match the type of the listlist - the list to add items toitems - the list of items to addpublic <T> FutureData<DataSiftResult> remove(DynamicList list, List<T> items)
T - the type of the items to remove, may be either string or integer,
and must match the type of the listlist - the list to remove items fromitems - the list of items to removeCopyright © 2015. All Rights Reserved.