From 132fef37953982304061bf5d94194690e766223f Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Sun, 23 Oct 2016 15:11:17 +0200 Subject: [PATCH] Update TeamLeagueStatistics struct. --- api_types.go | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/api_types.go b/api_types.go index 3a5f709..f74d602 100644 --- a/api_types.go +++ b/api_types.go @@ -163,13 +163,25 @@ type LeagueTable struct { // Contains statistical information about a team's performance in a league. type TeamLeagueStatistics struct { - Rank uint8 - Team string - TeamId uint64 - PlayedGames uint8 CrestURI string - Points uint16 + Draws uint16 + GoalDifference int16 Goals uint16 GoalsAgainst uint16 - GoalDifference uint8 + Losses uint16 + PlayedGames uint8 + Points uint16 + Position uint8 + TeamName string + Wins uint16 + Home ShortTeamLeagueStatistics + Away ShortTeamLeagueStatistics +} + +type ShortTeamLeagueStatistics struct { + Draws uint16 + Goals uint16 + GoalsAgainst uint16 + Losses uint16 + Wins uint16 }