ApiRecord

abstract class ApiRecord

Base class of every record the API returns (Team, Event, ...).

A record's properties are all read from raw, so two records are equal when the API sent the same fields. Records are created only by the library: constructors are internal, so new properties can be added in later versions without breaking compiled code. To test code that uses them, fake the HTTP layer (io.github.rohang27.thesportsdb.http.HttpTransport) instead.

Inheritors

Properties

Link copied to clipboard

Every field as the API sent it. Use it for fields not modelled yet: team.raw["strKeywords"].

Functions

Link copied to clipboard
operator override fun equals(other: Any?): Boolean
Link copied to clipboard
override fun hashCode(): Int