Class VehicleCommandContent
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Message content to send VehicleCommands to a vehicle.
public class VehicleCommandContent : DataToComponentContent, IBinaryPayload
- Inheritance
-
VehicleCommandContent
- Implements
- Inherited Members
Constructors
VehicleCommandContent()
Initializes a new instance of the VehicleCommandContent class.
public VehicleCommandContent()
VehicleCommandContent(VehicleCommand, in DateTime, int)
Initializes a new instance of the VehicleCommandContent class.
public VehicleCommandContent(VehicleCommand command, in DateTime commandDate, int commandPayload = 0)
Parameters
command
VehicleCommandThe VehicleCommand to send to the vehicle.
commandDate
DateTimeThe DateTime the command was sent. The commands that are too old will be ignored.
commandPayload
intAn optional payload that goes with the command. If it's not needed it will be set to 0.
Properties
Command
Gets or sets the command to send to the vehicle.
public VehicleCommand Command { get; set; }
Property Value
- VehicleCommand
The command to send to the vehicle.
CommandDate
Gets or sets the DateTime the command was sent. The commands that are too old will be ignored.
public DateTime CommandDate { get; set; }
Property Value
CommandPayload
Gets or sets an optional payload that goes with the command. If not needed it will be set to 0.
public int CommandPayload { get; set; }
Property Value
- int
An optional payload that goes with the command. If not needed it will be set to 0.
Methods
Clone()
Create a copy.
public override IBinaryPayload Clone()
Returns
- IBinaryPayload
The cloned instance.
GetData()
Gets the data for the payload.
protected override byte[] GetData()
Returns
- byte[]
The data.