DeviceCollectionOperations Class

Implements

public class DeviceCollectionOperations extends BasePartnerComponent<Tuple<String,String>> implements IDeviceCollection

Implements operations that apply to device collections.

Constructor Summary

Constructor Description
DeviceCollectionOperations(IPartner rootPartnerOperations, String customerId, String deviceBatchId)

Initializes a new instance of the DeviceCollectionOperations class.

Method Summary

Modifier and Type Method and Description
IDevice byId(String deviceId)

Retrieves a specific customer's device behavior.

java.lang.String create(List<Device> newDevices)

Adds devices to existing devices batch.

ResourceCollection<Device> get()

Retrieves all devices.

Inherited Members

BasePartnerComponent<TContext>.getContext() BasePartnerComponent<TContext>.getPartner() java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

DeviceCollectionOperations

public DeviceCollectionOperations(IPartner rootPartnerOperations, String customerId, String deviceBatchId)

Initializes a new instance of the DeviceCollectionOperations class.

Parameters:

rootPartnerOperations - The root partner operations instance.
customerId - Identifier for the customer.
deviceBatchId - Identifier for te device batch.

Method Details

byId

public IDevice byId(String deviceId)

Retrieves a specific customer's device behavior.

Parameters:

deviceId - The device identifier.

Returns:

The customer device behavior.

create

public String create(List newDevices)

Adds devices to existing devices batch.

Parameters:

newDevices - The new devices to be created.

Returns:

The location which indicates the URL of the API to query for status of the create request.

get

public ResourceCollection get()

Retrieves all devices.

Returns:

All of the devices.

Applies to