Add additional score info in FixtureResult.

- Adds struct FixtureScore which is essentially a copy of the old FixtureResult.
- Adds fields HalfTime, ExtraTime and PenaltyShootout to FixtureResult, all containing FixtureScore instances or nil if non-existent.
master
Icedream 2016-06-25 22:42:56 +02:00
parent df54a3b11f
commit 1078d876c9
1 changed files with 8 additions and 0 deletions

View File

@ -86,6 +86,14 @@ type FixturesResponse struct {
// Contains information about a fixture's results.
type FixtureResult struct {
FixtureScore
HalfTime *FixtureScore
ExtraTime *FixtureScore
PenaltyShootout *FixtureScore
}
type FixtureScore struct {
GoalsHomeTeam uint16
GoalsAwayTeam uint16
}