Class Session
Represents a racing session/run within an event, including timing information and session characteristics.
Inherited Members
Namespace: RedMist.TimingCommon.Models
Assembly: RedMist.TimingCommon.dll
Syntax
[MessagePackObject(false)]
public class Session
Constructors
View SourceSession()
Declaration
public Session()
Properties
View SourceEndTime
Gets or sets the end time of the session, or null if the session has not ended.
Declaration
[JsonPropertyName("et")]
[Key(4)]
public DateTime? EndTime { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
EventId
Gets or sets the event identifier this session belongs to.
Declaration
[JsonPropertyName("eid")]
[Key(1)]
public int EventId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Id
Gets or sets the unique identifier for this session as provided by the timing system.
Declaration
[JsonPropertyName("sid")]
[Key(0)]
public int Id { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
IsLive
Gets or sets a value indicating whether this session is currently live.
Declaration
[JsonPropertyName("il")]
[Key(7)]
public bool IsLive { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsPracticeQualifying
Gets or sets a value indicating whether this is likely a practice or qualifying session. This may not be accurate.
Declaration
[JsonPropertyName("pq")]
[Key(8)]
public bool IsPracticeQualifying { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
LastUpdated
Gets or sets the timestamp when this session was last updated, or null if never updated.
Declaration
[JsonPropertyName("lu")]
[Key(6)]
public DateTime? LastUpdated { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
LocalTimeZoneOffset
Gets or sets the local time zone offset in hours from UTC.
Declaration
[JsonPropertyName("tz")]
[Key(5)]
public double LocalTimeZoneOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Name
Gets or sets the name of the session. Maximum length: 64 characters (RMonitor max is 40).
Declaration
[JsonPropertyName("n")]
[MaxLength(64)]
[Key(2)]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StartTime
Gets or sets the scheduled start time of the session.
Declaration
[JsonPropertyName("st")]
[Key(3)]
public DateTime StartTime { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |