Clarification of documentation for "Competitions" and "SoccerSeasons" methods.

This commit makes clear that the list methods for the Competition/SoccerSeason resource only return data for the current season or for any targeted season. Fetching the complete list is not possible.
develop
Icedream 2016-07-09 21:35:29 +02:00
parent 0c3d78739e
commit 6eb67ba541
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ func (r CompetitionsRequest) Do() (s CompetitionList, err error) {
return return
} }
// Competitions prepares a request to fetch the complete list of soccer seasons. // Competitions prepares a request to fetch the list of competitions for the current season or for any specified season (via the "Season" submethod).
func (c *Client) Competitions() CompetitionsRequest { func (c *Client) Competitions() CompetitionsRequest {
return CompetitionsRequest{c.req("competitions")} return CompetitionsRequest{c.req("competitions")}
} }

View File

@ -29,7 +29,7 @@ func (r SoccerSeasonsRequest) Do() (s SoccerSeasonList, err error) {
// DEPRECATED. // DEPRECATED.
// //
// SoccerSeasons prepares a request to fetch the complete list of soccer seasons. // SoccerSeasons prepares a request to fetch the list of soccer seasons for the current season or for any specified season (via the "Season" submethod).
func (c *Client) SoccerSeasons() SoccerSeasonsRequest { func (c *Client) SoccerSeasons() SoccerSeasonsRequest {
return SoccerSeasonsRequest{c.req("soccerseasons")} return SoccerSeasonsRequest{c.req("soccerseasons")}
} }