IDeviceCollection Interface

Implements

IPartnerComponent<Tuple<java.lang.String,java.lang.String>> IEntireEntityCollectionRetrievalOperations<Device,ResourceCollection<Device>> IEntityCreateOperations<java.util.List<Device>,java.lang.String> IEntitySelector<java.lang.String,IDevice>

public interface IDeviceCollection extends IPartnerComponent<Tuple<String,String>>, IEntireEntityCollectionRetrievalOperations<Device,ResourceCollection<Device>>, IEntityCreateOperations<List<Device>,String>, IEntitySelector<String,IDevice>

Represents the operations that can be done on the partner's devices.

Method Summary

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

Retrieves a specific customer's device behavior.

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

Adds devices to existing devices batch.

abstract ResourceCollection<Device> get()

Retrieves all devices.

Method Details

byId

public abstract IDevice byId(String deviceId)

Retrieves a specific customer's device behavior.

Parameters:

deviceId - The device identifier.

Returns:

The customer device behavior.

create

public abstract 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 abstract ResourceCollection get()

Retrieves all devices.

Returns:

All of the devices.

Applies to