tock / ai.tock.bot.engine.user / PlayerId

PlayerId

data class PlayerId (source)

The user identifier.

Contains a (unique) id, a PlayerType and an optional clientId.

The clientId field is used in a "not mandatory logging" scenario, and to manage multi-platform dialogs.

A PlayerId is equals to another PlayerId if both id are equals.

Constructors

<init>

The user identifier.

PlayerId(id: String, type: PlayerType = PlayerType.user, clientId: String? = null)

Properties

clientId

The optional business client id.

val clientId: String?

id

The unique identifier of the player.

val id: String

type

The type of the player.

val type: PlayerType

Functions

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int