WorldCupClient
open class WorldCupClient : WorldCupClientProtocol, @unchecked Sendable
A client for the merino wcs endpoint.
Use [WorldCupClient::new] to create an instance, then call
[WordCupClient::get_*] to fetch wcs content.
-
Creates a new
WorldCupClientfrom the given configuration.Declaration
Swift
public convenience init(config: WorldCupConfig) throws -
Fetches live info from merino wcs endpoint
Declaration
Swift
open func getLive(options: WorldCupOptions) throws -> String? -
Fetches matches from merino wcs endpoint
Declaration
Swift
open func getMatches(options: WorldCupOptions) throws -> String? -
Fetches teams from the merino wcs endpoint
Declaration
Swift
open func getTeams(options: WorldCupOptions) throws -> String?