-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathTimingAppDataPoint.cs
More file actions
52 lines (46 loc) · 1.37 KB
/
TimingAppDataPoint.cs
File metadata and controls
52 lines (46 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
namespace UndercutF1.Data;
/// <summary>
/// Sample:
/// "Lines": {
/// "1": {
/// "RacingNumber": "1",
/// "Line": 1,
/// "Stints": [
/// {
/// "LapFlags": 0,
/// "Compound": "SOFT",
/// "New": "true",
/// "TyresNotChanged": "0",
/// "TotalLaps": 3,
/// "StartLaps": 0,
/// "LapTime": "1:28.491",
/// "LapNumber": 3
/// }
/// }
/// }
/// </summary>
[Mergeable]
public sealed partial record TimingAppDataPoint : ILiveTimingDataPoint
{
/// <inheritdoc />
public LiveTimingDataType LiveTimingDataType => LiveTimingDataType.TimingAppData;
public Dictionary<string, Driver> Lines { get; set; } = new();
public sealed partial record Driver
{
/// <summary>
/// The position the driver started the race from. Only available in Race sessions.
/// </summary>
public string? GridPos { get; set; }
public int? Line { get; set; }
public Dictionary<string, Stint> Stints { get; set; } = new();
public sealed partial record Stint
{
public int? LapFlags { get; set; }
public string? Compound { get; set; }
public bool? New { get; set; }
public int? TotalLaps { get; set; }
public int? StartLaps { get; set; }
public string? LapTime { get; set; }
}
}
}