Class DeviceCollectionOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<Tuple<String,String>>
com.microsoft.store.partnercenter.devicesdeployment.DeviceCollectionOperations
- All Implemented Interfaces:
IDeviceCollection,IEntireEntityCollectionRetrievalOperations<Device,ResourceCollection<Device>>,IEntityCreateOperations<List<Device>,String>,IEntitySelector<String,IDevice>,IPartnerComponent<Tuple<String,String>>
public class DeviceCollectionOperations extends BasePartnerComponent<Tuple<String,String>> implements IDeviceCollection
Implements operations that apply to device collections.
-
Constructor Summary
Constructors Constructor Description DeviceCollectionOperations(IPartner rootPartnerOperations, String customerId, String deviceBatchId)Initializes a new instance of the DeviceCollectionOperations class. -
Method Summary
Methods inherited from class com.microsoft.store.partnercenter.BasePartnerComponent
getContext, getPartnerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.microsoft.store.partnercenter.IPartnerComponent
getContext, getPartner
-
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
Retrieves a specific customer's device behavior.- Specified by:
byIdin interfaceIDeviceCollection- Specified by:
byIdin interfaceIEntitySelector<String,IDevice>- Parameters:
deviceId- The device identifier.- Returns:
- The customer device behavior.
-
create
Adds devices to existing devices batch.- Specified by:
createin interfaceIDeviceCollection- Specified by:
createin interfaceIEntityCreateOperations<List<Device>,String>- 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
Retrieves all devices.- Specified by:
getin interfaceIDeviceCollection- Specified by:
getin interfaceIEntireEntityCollectionRetrievalOperations<Device,ResourceCollection<Device>>- Returns:
- All of the devices.
-