tock / ai.tock.bot.engine.user / PlayerId / <init>

<init>

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

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.