DigitalTwins Interface
public interface DigitalTwins
An instance of this class provides access to all the operations defined in DigitalTwins.
Method Summary
Method Details
getDigitalTwin
public abstract Object getDigitalTwin(String id)
Gets a digital twin.
Parameters:
Returns:
getDigitalTwinAsync
public abstract Observable<Object> getDigitalTwinAsync(String id)
Gets a digital twin.
Parameters:
Returns:
getDigitalTwinAsync
public abstract ServiceFuture<Object> getDigitalTwinAsync(String id, ServiceCallback<Object> serviceCallback)
Gets a digital twin.
Parameters:
Returns:
getDigitalTwinWithServiceResponseAsync
public abstract Observable<ServiceResponseWithHeaders<Object,DigitalTwinGetDigitalTwinHeaders>> getDigitalTwinWithServiceResponseAsync(String id)
Gets a digital twin.
Parameters:
Returns:
invokeComponentCommand
public abstract Object invokeComponentCommand(String id, String componentPath, String commandName)
Invoke a digital twin command.
Parameters:
Returns:
invokeComponentCommand
public abstract Object invokeComponentCommand(String id, String componentPath, String commandName, Object payload, Integer connectTimeoutInSeconds, Integer responseTimeoutInSeconds)
Invoke a digital twin command.
Parameters:
Returns:
invokeComponentCommandAsync
public abstract Observable<Object> invokeComponentCommandAsync(String id, String componentPath, String commandName)
Invoke a digital twin command.
Parameters:
Returns:
invokeComponentCommandAsync
public abstract Observable<Object> invokeComponentCommandAsync(String id, String componentPath, String commandName, Object payload, Integer connectTimeoutInSeconds, Integer responseTimeoutInSeconds)
Invoke a digital twin command.
Parameters:
Returns:
invokeComponentCommandAsync
public abstract ServiceFuture<Object> invokeComponentCommandAsync(String id, String componentPath, String commandName, Object payload, Integer connectTimeoutInSeconds, Integer responseTimeoutInSeconds, ServiceCallback<Object> serviceCallback)
Invoke a digital twin command.
Parameters:
Returns:
invokeComponentCommandAsync
public abstract ServiceFuture<Object> invokeComponentCommandAsync(String id, String componentPath, String commandName, ServiceCallback<Object> serviceCallback)
Invoke a digital twin command.
Parameters:
Returns:
invokeComponentCommandWithServiceResponseAsync
public abstract Observable<ServiceResponseWithHeaders<Object,DigitalTwinInvokeComponentCommandHeaders>> invokeComponentCommandWithServiceResponseAsync(String id, String componentPath, String commandName)
Invoke a digital twin command.
Parameters:
Returns:
invokeComponentCommandWithServiceResponseAsync
public abstract Observable<ServiceResponseWithHeaders<Object,DigitalTwinInvokeComponentCommandHeaders>> invokeComponentCommandWithServiceResponseAsync(String id, String componentPath, String commandName, Object payload, Integer connectTimeoutInSeconds, Integer responseTimeoutInSeconds)
Invoke a digital twin command.
Parameters:
Returns:
invokeRootLevelCommand
public abstract Object invokeRootLevelCommand(String id, String commandName)
Invoke a digital twin root level command.
Parameters:
Returns:
invokeRootLevelCommand
public abstract Object invokeRootLevelCommand(String id, String commandName, Object payload, Integer connectTimeoutInSeconds, Integer responseTimeoutInSeconds)
Invoke a digital twin root level command.
Parameters:
Returns:
invokeRootLevelCommandAsync
public abstract Observable<Object> invokeRootLevelCommandAsync(String id, String commandName)
Invoke a digital twin root level command.
Parameters:
Returns:
invokeRootLevelCommandAsync
public abstract Observable<Object> invokeRootLevelCommandAsync(String id, String commandName, Object payload, Integer connectTimeoutInSeconds, Integer responseTimeoutInSeconds)
Invoke a digital twin root level command.
Parameters:
Returns:
invokeRootLevelCommandAsync
public abstract ServiceFuture<Object> invokeRootLevelCommandAsync(String id, String commandName, Object payload, Integer connectTimeoutInSeconds, Integer responseTimeoutInSeconds, ServiceCallback<Object> serviceCallback)
Invoke a digital twin root level command.
Parameters:
Returns:
invokeRootLevelCommandAsync
public abstract ServiceFuture<Object> invokeRootLevelCommandAsync(String id, String commandName, ServiceCallback<Object> serviceCallback)
Invoke a digital twin root level command.
Parameters:
Returns:
invokeRootLevelCommandWithServiceResponseAsync
public abstract Observable<ServiceResponseWithHeaders<Object,DigitalTwinInvokeRootLevelCommandHeaders>> invokeRootLevelCommandWithServiceResponseAsync(String id, String commandName)
Invoke a digital twin root level command.
Parameters:
Returns:
invokeRootLevelCommandWithServiceResponseAsync
public abstract Observable<ServiceResponseWithHeaders<Object,DigitalTwinInvokeRootLevelCommandHeaders>> invokeRootLevelCommandWithServiceResponseAsync(String id, String commandName, Object payload, Integer connectTimeoutInSeconds, Integer responseTimeoutInSeconds)
Invoke a digital twin root level command.
Parameters:
Returns:
updateDigitalTwin
public abstract void updateDigitalTwin(String id, List<Object> digitalTwinPatch)
Updates a digital twin.
Parameters:
updateDigitalTwin
public abstract void updateDigitalTwin(String id, List<Object> digitalTwinPatch, String ifMatch)
Updates a digital twin.
Parameters:
updateDigitalTwinAsync
public abstract Observable<Void> updateDigitalTwinAsync(String id, List<Object> digitalTwinPatch)
Updates a digital twin.
Parameters:
Returns:
updateDigitalTwinAsync
public abstract ServiceFuture<Void> updateDigitalTwinAsync(String id, List<Object> digitalTwinPatch, ServiceCallback<Void> serviceCallback)
Updates a digital twin.
Parameters:
Returns:
updateDigitalTwinAsync
public abstract Observable<Void> updateDigitalTwinAsync(String id, List<Object> digitalTwinPatch, String ifMatch)
Updates a digital twin.
Parameters:
Returns:
updateDigitalTwinAsync
public abstract ServiceFuture<Void> updateDigitalTwinAsync(String id, List<Object> digitalTwinPatch, String ifMatch, ServiceCallback<Void> serviceCallback)
Updates a digital twin.
Parameters:
Returns:
updateDigitalTwinWithServiceResponseAsync
public abstract Observable<ServiceResponseWithHeaders<Void,DigitalTwinUpdateDigitalTwinHeaders>> updateDigitalTwinWithServiceResponseAsync(String id, List<Object> digitalTwinPatch)
Updates a digital twin.
Parameters:
Returns:
updateDigitalTwinWithServiceResponseAsync
public abstract Observable<ServiceResponseWithHeaders<Void,DigitalTwinUpdateDigitalTwinHeaders>> updateDigitalTwinWithServiceResponseAsync(String id, List<Object> digitalTwinPatch, String ifMatch)
Updates a digital twin.
Parameters:
Returns: