Class DeviceConnection
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Represents a connection from a GO device.
public class DeviceConnection
- Inheritance
-
DeviceConnection
- Inherited Members
Constructors
DeviceConnection()
Initializes a new instance of the DeviceConnection class.Default Constructor.
public DeviceConnection()
DeviceConnection(Device, DeviceConnectionStatus, DateTime?, string?)
Initializes a new instance of the DeviceConnection class.Construct a new DeviceConnection instance.
public DeviceConnection(Device device, DeviceConnectionStatus deviceConnectionStatus, DateTime? datetime = null, string? machineName = null)
Parameters
device
DeviceThe GO device this connection is for.
deviceConnectionStatus
DeviceConnectionStatusThe connection status.
datetime
DateTime?The UTC DateTime when the change occurred
machineName
stringThe Gatway machine name.
Properties
Device
Gets or sets gets the Device.
public Device Device { get; set; }
Property Value
- Device
The <see cref="Device"/>.
DeviceConnectionStatus
Gets or sets the state of the connection.
public DeviceConnectionStatus DeviceConnectionStatus { get; set; }
Property Value
MachineName
Gets or sets the Gateway machine name.
public string? MachineName { get; set; }
Property Value
StatusDate
Gets or sets the device connection DateTime in UTC.
public DateTime? StatusDate { get; set; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public DeviceConnection Clone()
Returns
- DeviceConnection
A new object that is a copy of this instance.
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
Returns a string that represents this instance.
public override string ToString()