-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
race_out.go
47 lines (41 loc) · 1.23 KB
/
race_out.go
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
package main
type RaceOut struct {
Extras []RaceOutExtra `json:"extras"`
NumberOfSessions int `json:"number_of_sessions"`
Players []RaceOutPlayer `json:"players"`
Sessions []RaceOutSession `json:"sessions"`
Track string `json:"track"`
}
type RaceOutSession struct {
BestLaps []RaceOutBestLap `json:"bestLaps"`
Duration int `json:"duration"`
Event int `json:"event"`
Laps []RaceOutLaps `json:"laps"`
LapsCount int `json:"lapsCount"`
Lapstotal []int `json:"lapstotal"`
Name string `json:"name"`
RaceResult []int `json:"raceResult"`
Type int `json:"type"`
}
type RaceOutLaps struct {
Car int `json:"car"`
Cuts int `json:"cuts"`
Lap int `json:"lap"`
Sectors []int `json:"sectors"`
Time int `json:"time"`
Tyre string `json:"tyre"`
}
type RaceOutBestLap struct {
Car int `json:"car"`
Lap int `json:"lap"`
Time int `json:"time"`
}
type RaceOutPlayer struct {
Car string `json:"car"`
Name string `json:"name"`
Skin string `json:"skin"`
}
type RaceOutExtra struct {
Name string `json:"name"`
Time int `json:"time"`
}