SportsTeam
@Document(name = "builtin:SportsTeam")
class SportsTeam : SportsOrganization
| kotlin.Any | ||||
| ↳ | androidx.appsearch.builtintypes.Thing | |||
| ↳ | androidx.appsearch.builtintypes.Organization | |||
| ↳ | androidx.appsearch.builtintypes.SportsOrganization | |||
| ↳ | androidx.appsearch.builtintypes.SportsTeam |
AppSearch document representing a SportsTeam entity.
Summary
Nested types |
|---|
Public functions |
|
|---|---|
String? |
Returns the formatted record of the sports team. eg: "10 - 5", "10 - 5 (3 - 2)", "10 - 5 (3 - 2) - 1 OT" depending on the sport. |
Long |
Returns the number of losses of the sports team. |
Long |
Returns the number of overtime losses of the sports team. |
Long |
Returns the number of overtime wins of the sports team. |
Long |
getTies()Returns the number of ties of the sports team. |
Long |
getWins()Returns the number of wins of the sports team. |
Inherited functions |
||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||
|
Public functions
getFormattedRecord
fun getFormattedRecord(): String?
Returns the formatted record of the sports team. eg: "10 - 5", "10 - 5 (3 - 2)", "10 - 5 (3 - 2) - 1 OT" depending on the sport.
getLosses
fun getLosses(): Long
Returns the number of losses of the sports team.
getOvertimeLosses
fun getOvertimeLosses(): Long
Returns the number of overtime losses of the sports team.
getOvertimeWins
fun getOvertimeWins(): Long
Returns the number of overtime wins of the sports team.