sorarebuddy/sorare_utils/competition.go
2024-06-06 09:52:54 +04:00

27 lines
553 B
Go

package sorare_utils
import (
"git.lehouerou.net/laurent/sorare"
"git.lehouerou.net/laurent/sorare/football"
"git.lehouerou.net/laurent/sorarebuddy/db"
)
type CompetitionUpdater struct {
s *sorare.Sorare
db *db.Client
countryUpdater *CountryUpdater
cache []football.Competition
slugsToRead []string
}
func NewCompetitionUpdater(s *sorare.Sorare, db *db.Client, countryUpdater *CountryUpdater) *CompetitionUpdater {
return &CompetitionUpdater{
s: s,
db: db,
countryUpdater: countryUpdater,
}
}