Class Override
An override.
[DataContract(IsReference = true)]
[KnownType(typeof(UnitStation))]
[KnownType(typeof(Worker))]
[KnownType(typeof(UnitComponent))]
[KnownType(typeof(UnitTest))]
public class Override
- Inheritance
-
Override
- Inherited Members
Constructors
Override(int, DateTime, UnitStation, Worker, UnitComponent?, UnitTest?)
Initializes a new instance of the Override class.
public Override(int overrideId, DateTime overrideDateTime, UnitStation unitStation, Worker worker, UnitComponent? unitComponent, UnitTest? unitTest)
Parameters
overrideIdintThe unique identifier for this override.
overrideDateTimeDateTimeThe date/time when this override occurred, in UTC.
unitStationUnitStationThe unit station at which this occurred.
workerWorkerThe worker who performed the override.
unitComponentUnitComponentThe unit component that is being overridden, or null if this override is not for a unit component.
unitTestUnitTestThe unit test that is being overridden, or null if this override is not for a unit test.
Exceptions
- ArgumentNullException
unitStationis null.- ArgumentNullException
workeris null.
Properties
Notes
Gets or sets optional notes about this override.
[DataMember]
public string? Notes { get; set; }
Property Value
OverrideDateTime
Gets the date/time when this override occurred, in UTC.
[DataMember]
public DateTime OverrideDateTime { get; }
Property Value
OverrideId
Gets the unique identifier for this override.
[DataMember]
public int OverrideId { get; }
Property Value
UnitComponent
Gets the unit component that is being overridden, or null if this override is not for a unit component.
[DataMember]
public UnitComponent? UnitComponent { get; }
Property Value
UnitStation
Gets the unit station at which this occurred.
[DataMember]
public UnitStation UnitStation { get; }
Property Value
UnitTest
Gets the unit test that is being overridden, or null if this override is not for a unit test.
[DataMember]
public UnitTest? UnitTest { get; }
Property Value
Worker
Gets the worker who performed the override.
[DataMember]
public Worker Worker { get; }