RedMist
Search Results for

    Show / Hide Table of Contents

    Class SessionState

    The overall state of a race session at any given time. This includes data needed to fully represent the race.

    Inheritance
    object
    SessionState
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: RedMist.TimingCommon.Models
    Assembly: RedMist.TimingCommon.dll
    Syntax
    [MessagePackObject(false)]
    [GeneratePatch]
    public class SessionState

    Constructors

    View Source

    SessionState()

    Declaration
    public SessionState()

    Properties

    View Source

    Announcements

    Session announcements as indicated by the timing system.

    Declaration
    [Key(27)]
    [MaxLength(500)]
    public List<Announcement> Announcements { get; set; }
    Property Value
    Type Description
    List<Announcement>
    View Source

    AverageRaceSpeed

    Gets or sets the average speed of the race, expressed as a string, e.g. 130.456 mph.

    Declaration
    [MaxLength(11)]
    [Key(23)]
    public string? AverageRaceSpeed { get; set; }
    Property Value
    Type Description
    string
    View Source

    CarPositions

    Represents the current position and status of each car in the event.

    Declaration
    [Key(14)]
    [MaxLength(500)]
    public List<CarPosition> CarPositions { get; set; }
    Property Value
    Type Description
    List<CarPosition>
    View Source

    ClassColors

    Class colors in hexadecimal format #RRGGBB (e.g., "#FF0000" for red). Each color corresponds to a racing class for visual identification.

    Declaration
    [Key(26)]
    [MaxLength(50)]
    public Dictionary<string, string> ClassColors { get; set; }
    Property Value
    Type Description
    Dictionary<string, string>
    View Source

    ClassOrder

    Gets or sets the mapping of class names to their corresponding order values.

    Declaration
    [Key(29)]
    [MaxLength(50)]
    public Dictionary<string, string> ClassOrder { get; set; }
    Property Value
    Type Description
    Dictionary<string, string>
    View Source

    CurrentFlag

    Current flag state for the event.

    Declaration
    [Key(15)]
    public Flags CurrentFlag { get; set; }
    Property Value
    Type Description
    Flags
    View Source

    EventEntries

    These are the signed up entries indicated by the timing system. They may not be the same as the cars that actually participated in the event.

    Declaration
    [Key(13)]
    [MaxLength(500)]
    public List<EventEntry> EventEntries { get; set; }
    Property Value
    Type Description
    List<EventEntry>
    View Source

    EventId

    Redmist ID for the event.

    Declaration
    [Key(0)]
    public int EventId { get; set; }
    Property Value
    Type Description
    int
    View Source

    EventName

    Event name as provided by the organizer.

    Declaration
    [MaxLength(512)]
    [Key(1)]
    public string EventName { get; set; }
    Property Value
    Type Description
    string
    View Source

    FlagDurations

    Flag states for the event, including durations.

    Declaration
    [Key(16)]
    [MaxLength(100)]
    public List<FlagDuration> FlagDurations { get; set; }
    Property Value
    Type Description
    List<FlagDuration>
    View Source

    GreenLaps

    Number of laps the session has been under green. Available with Multiloop timing systems.

    Declaration
    [Key(18)]
    public int? GreenLaps { get; set; }
    Property Value
    Type Description
    int?
    View Source

    GreenTimeMs

    Amount of time in milliseconds the session has been under green. Available with Multiloop timing systems.

    Declaration
    [Key(17)]
    public int? GreenTimeMs { get; set; }
    Property Value
    Type Description
    int?
    View Source

    IsArchived

    Gets or sets a value indicating whether this session is historical or archived.

    Declaration
    [Key(31)]
    public bool IsArchived { get; set; }
    Property Value
    Type Description
    bool
    View Source

    IsLive

    Indicates whether the organizer is connected and sending data for the event.

    Declaration
    [Key(12)]
    public bool IsLive { get; set; }
    Property Value
    Type Description
    bool
    View Source

    IsPracticeQualifying

    Whether the current session is a practice qualifying session. This is is not guaranteed to be accurate and comes from the session name.

    Declaration
    [Key(8)]
    public bool IsPracticeQualifying { get; set; }
    Property Value
    Type Description
    bool
    View Source

    IsSimulation

    Indicates whether this is a real event or a simulation/replay/test event.

    Declaration
    [Key(30)]
    public bool IsSimulation { get; set; }
    Property Value
    Type Description
    bool
    View Source

    LapsToGo

    Optional number of laps to go if the race is lap based.

    Declaration
    [Key(4)]
    public int LapsToGo { get; set; }
    Property Value
    Type Description
    int
    View Source

    LastUpdated

    Last time the session state was updated.

    Declaration
    [Key(28)]
    public DateTime? LastUpdated { get; set; }
    Property Value
    Type Description
    DateTime?
    View Source

    LeadChanges

    Count of overall lead changes in the session. Available with Multiloop timing systems.

    Declaration
    [Key(24)]
    public int? LeadChanges { get; set; }
    Property Value
    Type Description
    int?
    View Source

    LocalTimeOfDay

    Gets or sets the local time of day as a string. This is 24 hour format HH:mm:ss.

    Declaration
    [MaxLength(8)]
    [Key(6)]
    public string LocalTimeOfDay { get; set; }
    Property Value
    Type Description
    string
    View Source

    LocalTimeZoneOffset

    The event's local time zone offset from UTC in hours as indicated by the organizer's system time.

    Declaration
    [Key(11)]
    public double LocalTimeZoneOffset { get; set; }
    Property Value
    Type Description
    double
    View Source

    NumberOfYellows

    Number of yellow flag periods in the session. Available with Multiloop timing systems.

    Declaration
    [Key(21)]
    public int? NumberOfYellows { get; set; }
    Property Value
    Type Description
    int?
    View Source

    RedTimeMs

    Amount of time in milliseconds the session has been under red. Available with Multiloop timing systems.

    Declaration
    [Key(22)]
    public int? RedTimeMs { get; set; }
    Property Value
    Type Description
    int?
    View Source

    RunningRaceTime

    Gets or sets the amount of time a race has been running. Format is HH:mm:ss.

    Declaration
    [MaxLength(8)]
    [Key(7)]
    public string RunningRaceTime { get; set; }
    Property Value
    Type Description
    string
    View Source

    Sections

    Track sections as indicated by the timing system.

    Declaration
    [Key(25)]
    [MaxLength(5)]
    public List<Section> Sections { get; set; }
    Property Value
    Type Description
    List<Section>
    View Source

    SessionEndTime

    When the session ended according to the timing system change to another session or timeout of data being received, such as at the end of the race.

    Declaration
    [Key(10)]
    public DateTime? SessionEndTime { get; set; }
    Property Value
    Type Description
    DateTime?
    View Source

    SessionId

    Session, or run, is the current part of the event being timed such as in individual race, practice, or qualifying session. This is the ID provided by the timing system.

    Declaration
    [Key(2)]
    public int SessionId { get; set; }
    Property Value
    Type Description
    int
    View Source

    SessionName

    Session name as provided by the timing system.

    Declaration
    [MaxLength(40)]
    [Key(3)]
    public string SessionName { get; set; }
    Property Value
    Type Description
    string
    View Source

    SessionStartTime

    When the session started according to the the first time data was received from the timing system for the session.

    Declaration
    [Key(9)]
    public DateTime SessionStartTime { get; set; }
    Property Value
    Type Description
    DateTime
    View Source

    TimeToGo

    Optional time of the session remaining if the event is time based. Format is HH:mm:ss.

    Declaration
    [MaxLength(10)]
    [Key(5)]
    public string TimeToGo { get; set; }
    Property Value
    Type Description
    string
    Remarks

    Orbits has been seen to have a negative seconds value preceding the start of a race, i.e. HH:mm:-ss

    View Source

    TrackPrecipitationPerc

    Estimated precipitation on the track as a percentage. Value of 0 means no chance of precipitation, 100 means certain precipitation.

    Declaration
    [Key(33)]
    public int? TrackPrecipitationPerc { get; set; }
    Property Value
    Type Description
    int?
    View Source

    TrackTempDegF

    Estimated temperature of the track in degrees Fahrenheit.

    Declaration
    [Key(32)]
    public int? TrackTempDegF { get; set; }
    Property Value
    Type Description
    int?
    View Source

    YellowLaps

    Number of laps the session has been under yellow. Available with Multiloop timing systems.

    Declaration
    [Key(20)]
    public int? YellowLaps { get; set; }
    Property Value
    Type Description
    int?
    View Source

    YellowTimeMs

    Amount of time in milliseconds the session has been under yellow. Available with Multiloop timing systems.

    Declaration
    [Key(19)]
    public int? YellowTimeMs { get; set; }
    Property Value
    Type Description
    int?

    Extension Methods

    SessionExtensions.DeepCopy(SessionState)
    SessionExtensions.ToPayload(SessionState)
    • View Source
    In this article
    Back to top © 2025 Big Mission Motorsports, LLC. Red Mist Timing & Scoring