-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathChampionshipPredictionDataPoint.cs
More file actions
49 lines (45 loc) · 1.44 KB
/
ChampionshipPredictionDataPoint.cs
File metadata and controls
49 lines (45 loc) · 1.44 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
namespace UndercutF1.Data;
/// <summary>
/// Sample:
/// <c>
/// "Drivers": {
/// "1": {
/// "RacingNumber": "1",
/// "CurrentPosition": 1,
/// "PredictedPosition": 1,
/// "CurrentPoints": 161.0,
/// "PredictedPoints": 169.0
/// },
/// "16": {
/// "RacingNumber": "16",
/// "CurrentPosition": 2,
/// "PredictedPosition": 2,
/// "CurrentPoints": 113.0,
/// "PredictedPoints": 138.0
/// }
/// </c>
/// </summary>
[Mergeable]
public sealed partial record ChampionshipPredictionDataPoint : ILiveTimingDataPoint
{
/// <inheritdoc />
public LiveTimingDataType LiveTimingDataType => LiveTimingDataType.ChampionshipPrediction;
public Dictionary<string, Driver> Drivers { get; set; } = new();
public Dictionary<string, Team> Teams { get; set; } = new();
public sealed partial record Driver
{
public string? RacingNumber { get; set; }
public int? CurrentPosition { get; set; }
public int? PredictedPosition { get; set; }
public decimal? CurrentPoints { get; set; }
public decimal? PredictedPoints { get; set; }
}
public sealed partial record Team
{
public string? TeamName { get; set; }
public int? CurrentPosition { get; set; }
public int? PredictedPosition { get; set; }
public decimal? CurrentPoints { get; set; }
public decimal? PredictedPoints { get; set; }
}
}