ModelFactoryGenerateOnDeviceCommandModel(DeviceDto, DeviceCommandType, Object) Method

Generates the input model for OnDeviceCommand action

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
public static OnDeviceCommandModel GenerateOnDeviceCommandModel(
	DeviceDto device,
	DeviceCommandType command,
	Object[]? parameters = null
)

Parameters

device  DeviceDto
Device receiving the command
command  DeviceCommandType
The command to be sent
parameters  Object  (Optional)
Parameters for the command (optional)

Return Value

OnDeviceCommandModel
Generated OnDeviceCommandModel

Exceptions

ArgumentExceptionInvoked if command is empty
ArgumentNullExceptionInvoked if device is .

See Also