Class UnitTransition
A unit transition.
[DataContract(IsReference = true)]
[KnownType(typeof(State))]
[KnownType(typeof(Transition))]
[KnownType(typeof(UnitStation))]
public class UnitTransition
- Inheritance
-
UnitTransition
- Inherited Members
Constructors
UnitTransition(DateTime, State, Transition, UnitStation)
Initializes a new instance of the UnitTransition class.
public UnitTransition(DateTime transitionDateTime, State state, Transition transition, UnitStation unitStation)
Parameters
transitionDateTimeDateTimeThe date/time at which this transition occurred, in UTC.
stateStateThe state to which the unit was transitioned.
transitionTransitionThe transition that occurred.
unitStationUnitStationThe unit station at which this occurred.
Exceptions
- ArgumentNullException
stateis null.- ArgumentNullException
transitionis null.- ArgumentNullException
unitStationis null.
Properties
State
Gets the state to which the unit was transitioned.
[DataMember]
public State State { get; }
Property Value
Transition
Gets the transition that occurred.
[DataMember]
public Transition Transition { get; }
Property Value
TransitionDateTime
Gets the date/time at which this transition occurred, in UTC.
[DataMember]
public DateTime TransitionDateTime { get; }
Property Value
UnitStation
Gets the unit station at which this occurred.
[DataMember]
public UnitStation UnitStation { get; }