ModelFactoryGenerateOnDeviceCommandModel(DeviceDto, DeviceCommandType, DictionaryString, Object) Method

Generates the input model for 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,
	Dictionary<string, Object>? parameters = null
)

Parameters

device  DeviceDto
Device to generate the command for
command  DeviceCommandType
Command to invoke on the device
parameters  DictionaryString, Object  (Optional)
Parameters to send to the device (optional)

Return Value

OnDeviceCommandModel
Generated model

Exceptions

ArgumentNullExceptionThrown if device is .
ArgumentExceptionThrown if command is empty.

See Also