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.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
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