Class Event
Represents a racing event with complete details including sessions, schedule, track information, and organization details.
Inherited Members
Namespace: RedMist.TimingCommon.Models
Assembly: RedMist.TimingCommon.dll
Syntax
[MessagePackObject(false)]
public class Event
Constructors
View SourceEvent()
Declaration
public Event()
Properties
View SourceBroadcast
Gets or sets the broadcaster configuration for this event, or null if no broadcast is configured.
Declaration
[JsonPropertyName("b")]
[Key(12)]
public BroadcasterConfig? Broadcast { get; set; }
Property Value
| Type | Description |
|---|---|
| BroadcasterConfig |
CourseConfiguration
Gets or sets the course configuration or layout variant being used. Maximum length: 60 characters.
Declaration
[JsonPropertyName("cc")]
[Key(10)]
[MaxLength(60)]
public string CourseConfiguration { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Distance
Gets or sets the track distance or length. Maximum length: 20 characters.
Declaration
[JsonPropertyName("di")]
[Key(11)]
[MaxLength(20)]
public string Distance { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EventDate
Gets or sets the date of the event as a formatted string. Maximum length: 80 characters.
Declaration
[JsonPropertyName("d")]
[Key(2)]
[MaxLength(80)]
public string EventDate { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EventId
Gets or sets the unique identifier for this event.
Declaration
[JsonPropertyName("e")]
[Key(0)]
public int EventId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
EventName
Gets or sets the name of the event. Maximum length: 512 characters.
Declaration
[JsonPropertyName("n")]
[Key(1)]
[MaxLength(512)]
public string EventName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EventUrl
Gets or sets the URL for event-specific information or registration. Maximum length: 2083 characters.
Declaration
[JsonPropertyName("u")]
[Key(3)]
[MaxLength(2083)]
public string EventUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HasControlLog
Gets or sets a value indicating whether this event has a control log available.
Declaration
[JsonPropertyName("hc")]
[Key(13)]
public bool HasControlLog { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsArchived
Gets or sets a value indicating whether this session is historical or archived.
Declaration
[Key(16)]
public bool IsArchived { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsLive
Gets or sets a value indicating whether this event is currently live.
Declaration
[JsonPropertyName("il")]
[Key(14)]
public bool IsLive { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsSimulation
Indicates whether this is a real event or a simulation/replay/test event.
Declaration
[Key(15)]
public bool IsSimulation { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
OrganizationId
Organization that owns the event.
Declaration
[Key(17)]
public int OrganizationId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
OrganizationLogo
Gets or sets the organization's logo as a byte array, or null if not available.
Maximum size: 5242880 bytes (5 MB).
Declaration
[JsonPropertyName("l")]
[Key(7)]
[MaxLength(5242880)]
public byte[]? OrganizationLogo { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
OrganizationName
Gets or sets the name of the organization hosting this event. Maximum length: 255 characters.
Declaration
[JsonPropertyName("on")]
[Key(5)]
[MaxLength(255)]
public string OrganizationName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OrganizationWebsite
Gets or sets the website URL of the organization hosting this event, or null if not available.
Maximum length: 2083 characters.
Declaration
[JsonPropertyName("ow")]
[Key(6)]
[MaxLength(2083)]
public string? OrganizationWebsite { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Schedule
Gets or sets the event schedule, or null if no schedule is available.
Declaration
[JsonPropertyName("sc")]
[Key(8)]
public EventSchedule? Schedule { get; set; }
Property Value
| Type | Description |
|---|---|
| EventSchedule |
Sessions
Gets or sets the array of sessions within this event. Maximum number of sessions: 50.
Declaration
[JsonPropertyName("s")]
[Key(4)]
[MaxLength(50)]
public Session[] Sessions { get; set; }
Property Value
| Type | Description |
|---|---|
| Session[] |
TrackName
Gets or sets the name of the track where this event is held. Maximum length: 128 characters.
Declaration
[JsonPropertyName("t")]
[Key(9)]
[MaxLength(128)]
public string TrackName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |