Table of Contents

Class UnitDefect

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

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

unitDefectId int

The unique identifier for this unit defect.

defectDateTime DateTime

The date/time when the defect was added, in UTC.

defect Defect

The defect.

unitStation UnitStation

The unit station at which this occurred.

Exceptions

ArgumentNullException

defect is null.

ArgumentNullException

unitStation is null.

Properties

Defect

Gets the defect.

[DataMember]
public Defect Defect { get; }

Property Value

Defect

DefectDateTime

Gets the date/time when the defect was added, in UTC.

[DataMember]
public DateTime DefectDateTime { get; }

Property Value

DateTime

Notes

Gets or sets optional additional notes about the defect.

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

Property Value

string

UnitDefectId

Gets the unique identifier for this unit defect.

[DataMember]
public int UnitDefectId { get; }

Property Value

int

UnitDefectRepairs

Gets the list of repairs for this defect.

public IList<UnitDefectRepair> UnitDefectRepairs { get; }

Property Value

IList<UnitDefectRepair>

UnitStation

Gets the unit station at which this occurred.

[DataMember]
public UnitStation UnitStation { get; }

Property Value

UnitStation