WorldCupClientProtocol
public protocol WorldCupClientProtocol : AnyObject, Sendable
A client for the merino wcs endpoint.
Use [WorldCupClient::new] to create an instance, then call
[WordCupClient::get_*] to fetch wcs content.
-
Fetches live info from merino wcs endpoint
Declaration
Swift
func getLive(options: WorldCupOptions) throws -> String? -
Fetches matches from merino wcs endpoint
Declaration
Swift
func getMatches(options: WorldCupOptions) throws -> String? -
Fetches teams from the merino wcs endpoint
Declaration
Swift
func getTeams(options: WorldCupOptions) throws -> String?