2024-08-03 17:36:25 +00:00
|
|
|
package football
|
|
|
|
|
|
|
|
import "git.lehouerou.net/laurent/sorare/graphql"
|
|
|
|
|
|
|
|
type Rivals struct {
|
|
|
|
c *graphql.Client
|
2024-08-14 07:30:54 +00:00
|
|
|
|
|
|
|
PastGames *graphql.PaginatedQuery[RivalsGame, graphql.EmptyParams]
|
2024-08-03 17:36:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewRivals(c *graphql.Client) *Rivals {
|
2024-08-14 07:30:54 +00:00
|
|
|
return &Rivals{
|
|
|
|
c: c,
|
|
|
|
|
|
|
|
PastGames: graphql.NewPaginatedQuery[RivalsGame, graphql.EmptyParams](c, "pastGamesPaginated", []string{"football", "rivals"}).WithOverrideComplexity(107),
|
|
|
|
}
|
2024-08-03 17:36:25 +00:00
|
|
|
}
|