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+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
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