-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_match.go
38 lines (37 loc) · 2.39 KB
/
model_match.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
/*
* The Blue Alliance API v3
*
* # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). A `User-Agent` header may need to be set to prevent a 403 Unauthorized error.
*
* API version: 3.5
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
// Match struct for Match
type Match struct {
// TBA match key with the format `yyyy[EVENT_CODE]_[COMP_LEVEL]m[MATCH_NUMBER]`, where `yyyy` is the year, and `EVENT_CODE` is the event code of the event, `COMP_LEVEL` is (qm, ef, qf, sf, f), and `MATCH_NUMBER` is the match number in the competition level. A set number may be appended to the competition level if more than one match in required per set.
Key string `json:"key"`
// The competition level the match was played at.
CompLevel string `json:"comp_level"`
// The set number in a series of matches where more than one match is required in the match series.
SetNumber int32 `json:"set_number"`
// The match number of the match in the competition level.
MatchNumber int32 `json:"match_number"`
Alliances MatchSimpleAlliances `json:"alliances,omitempty"`
// The color (red/blue) of the winning alliance. Will contain an empty string in the event of no winner, or a tie.
WinningAlliance string `json:"winning_alliance,omitempty"`
// Event key of the event the match was played at.
EventKey string `json:"event_key"`
// UNIX timestamp (seconds since 1-Jan-1970 00:00:00) of the scheduled match time, as taken from the published schedule.
Time int64 `json:"time,omitempty"`
// UNIX timestamp (seconds since 1-Jan-1970 00:00:00) of actual match start time.
ActualTime int64 `json:"actual_time,omitempty"`
// UNIX timestamp (seconds since 1-Jan-1970 00:00:00) of the TBA predicted match start time.
PredictedTime int64 `json:"predicted_time,omitempty"`
// UNIX timestamp (seconds since 1-Jan-1970 00:00:00) when the match result was posted.
PostResultTime int64 `json:"post_result_time,omitempty"`
// Score breakdown for auto, teleop, etc. points. Varies from year to year. May be null.
ScoreBreakdown map[string]interface{} `json:"score_breakdown,omitempty"`
// Array of video objects associated with this match.
Videos []MatchVideos `json:"videos,omitempty"`
}