@Document(name = "builtin:SportsTeam")
class SportsTeam : SportsOrganization


AppSearch document representing a SportsTeam entity.

Summary

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

Returns the number of ties of the sports team.

Long

Returns the number of wins of the sports team.

Inherited functions

From androidx.appsearch.builtintypes.Organization
ImageObject?

Returns the logo of the organization, if set.

From androidx.appsearch.builtintypes.SportsOrganization
Color?

Returns the accent colors of the sports organization as a Color, if set.

String

Returns the sport of the sports organization, if set.

From androidx.appsearch.builtintypes.Thing
(Mutable)List<String!>

Returns an unmodifiable list of aliases, if any, for this item.

Long

Returns the creation timestamp, in milliseconds since Unix epoch, of this item.

String?

Returns a description of this item.

Int

Returns the intrinsic score (or importance) of this item.

Long

Returns the time-to-live timestamp, in milliseconds since getCreationTimestampMillis, for this item.

String

Returns the unique identifier for this item.

String?

Returns the URL for an image of this item.

String?

Returns the name of this item.

String

Returns the namespace (or logical grouping) for this item.

(Mutable)List<PotentialAction!>

Returns the actions that can be taken on this object.

String?

Returns the deeplink URL of this item.

Public functions

getFormattedRecord

Added in 1.2.0-alpha01
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

Added in 1.2.0-alpha01
fun getLosses(): Long

Returns the number of losses of the sports team.

getOvertimeLosses

Added in 1.2.0-alpha01
fun getOvertimeLosses(): Long

Returns the number of overtime losses of the sports team.

getOvertimeWins

Added in 1.2.0-alpha01
fun getOvertimeWins(): Long

Returns the number of overtime wins of the sports team.

getTies

Added in 1.2.0-alpha01
fun getTies(): Long

Returns the number of ties of the sports team.

getWins

Added in 1.2.0-alpha01
fun getWins(): Long

Returns the number of wins of the sports team.