Class UnitComponent
A unit component.
[DataContract(IsReference = true)]
[KnownType(typeof(ComponentType))]
[KnownType(typeof(UnitStation))]
[KnownType(typeof(Override))]
public class UnitComponent
- Inheritance
-
UnitComponent
- Inherited Members
Constructors
UnitComponent(int, DateTime, ComponentType, UnitStation)
Initializes a new instance of the UnitComponent class.
public UnitComponent(int unitComponentId, DateTime scanDateTime, ComponentType componentType, UnitStation unitStation)
Parameters
unitComponentIdintThe unique identifier for this unit component.
scanDateTimeDateTimeThe date/time that the component was scanned, in UTC.
componentTypeComponentTypeThe component type.
unitStationUnitStationThe unit station at which this occurred.
Exceptions
- ArgumentNullException
componentTypeis null.- ArgumentNullException
unitStationis null.
Properties
ComponentType
Gets the component type.
[DataMember]
public ComponentType ComponentType { get; }
Property Value
IsAlternate
Gets or sets whether this component was flagged as an alternate part.
[DataMember]
public bool IsAlternate { get; set; }
Property Value
IsInstalled
Gets or sets whether this component is currently installed in the unit.
[DataMember]
public bool IsInstalled { get; set; }
Property Value
IsValid
Gets or sets whether this component was determined to be valid when it was scanned.
[DataMember]
public bool IsValid { get; set; }
Property Value
ModelNumber
Gets or sets the optional component model number.
[DataMember]
public string? ModelNumber { get; set; }
Property Value
Override
Gets or sets the override for this component scan, if one exists.
[DataMember]
public Override? Override { get; set; }
Property Value
ScanDateTime
Gets the date/time that the component was scanned, in UTC.
[DataMember]
public DateTime ScanDateTime { get; }
Property Value
SerialNumber
Gets or sets the optional component serial number.
[DataMember]
public string? SerialNumber { get; set; }
Property Value
UnitComponentId
Gets the unique identifier for this unit component.
[DataMember]
public int UnitComponentId { get; }
Property Value
UnitStation
Gets the unit station at which this occurred.
[DataMember]
public UnitStation UnitStation { get; }