Table of Contents

Class UnitComponent

Namespace
Acuit.Pinpoint.Services.Entities
Assembly
Acuit.Pinpoint.Services.Entities.dll

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

unitComponentId int

The unique identifier for this unit component.

scanDateTime DateTime

The date/time that the component was scanned, in UTC.

componentType ComponentType

The component type.

unitStation UnitStation

The unit station at which this occurred.

Exceptions

ArgumentNullException

componentType is null.

ArgumentNullException

unitStation is null.

Properties

ComponentType

Gets the component type.

[DataMember]
public ComponentType ComponentType { get; }

Property Value

ComponentType

IsAlternate

Gets or sets whether this component was flagged as an alternate part.

[DataMember]
public bool IsAlternate { get; set; }

Property Value

bool

IsInstalled

Gets or sets whether this component is currently installed in the unit.

[DataMember]
public bool IsInstalled { get; set; }

Property Value

bool

IsValid

Gets or sets whether this component was determined to be valid when it was scanned.

[DataMember]
public bool IsValid { get; set; }

Property Value

bool

ModelNumber

Gets or sets the optional component model number.

[DataMember]
public string? ModelNumber { get; set; }

Property Value

string

Override

Gets or sets the override for this component scan, if one exists.

[DataMember]
public Override? Override { get; set; }

Property Value

Override

ScanDateTime

Gets the date/time that the component was scanned, in UTC.

[DataMember]
public DateTime ScanDateTime { get; }

Property Value

DateTime

SerialNumber

Gets or sets the optional component serial number.

[DataMember]
public string? SerialNumber { get; set; }

Property Value

string

UnitComponentId

Gets the unique identifier for this unit component.

[DataMember]
public int UnitComponentId { get; }

Property Value

int

UnitStation

Gets the unit station at which this occurred.

[DataMember]
public UnitStation UnitStation { get; }

Property Value

UnitStation