Class UnitDefect
A unit defect.
[DataContract(IsReference = true)]
[KnownType(typeof(Defect))]
[KnownType(typeof(UnitDefectRepair))]
[KnownType(typeof(UnitStation))]
public class UnitDefect
- Inheritance
-
UnitDefect
- Inherited Members
Constructors
UnitDefect(int, DateTime, Defect, UnitStation)
Initializes a new instance of the UnitDefect class.
public UnitDefect(int unitDefectId, DateTime defectDateTime, Defect defect, UnitStation unitStation)
Parameters
unitDefectIdintThe unique identifier for this unit defect.
defectDateTimeDateTimeThe date/time when the defect was added, in UTC.
defectDefectThe defect.
unitStationUnitStationThe unit station at which this occurred.
Exceptions
- ArgumentNullException
defectis null.- ArgumentNullException
unitStationis null.
Properties
Defect
Gets the defect.
[DataMember]
public Defect Defect { get; }
Property Value
DefectDateTime
Gets the date/time when the defect was added, in UTC.
[DataMember]
public DateTime DefectDateTime { get; }
Property Value
Notes
Gets or sets optional additional notes about the defect.
[DataMember]
public string? Notes { get; set; }
Property Value
UnitDefectId
Gets the unique identifier for this unit defect.
[DataMember]
public int UnitDefectId { get; }
Property Value
UnitDefectRepairs
Gets the list of repairs for this defect.
public IList<UnitDefectRepair> UnitDefectRepairs { get; }
Property Value
UnitStation
Gets the unit station at which this occurred.
[DataMember]
public UnitStation UnitStation { get; }