tock / ai.tock.bot.engine.event / OneToOneEvent

# OneToOneEvent

`abstract class OneToOneEvent : Event` (source)

A one to one event is an event that has a source (the user id) and a target (the recipient id).

### Constructors

#### <init> | A one to one event is an event that has a source (the user id) and a target (the recipient id). `OneToOneEvent(userId: PlayerId, recipientId: PlayerId, applicationId: String)`

### Properties

#### recipientId | `val recipientId: PlayerId`
#### userId | `val userId: PlayerId`

### Inheritors

#### ContinuePublicConversationInPrivateEvent | Switch to private mode event. `class ContinuePublicConversationInPrivateEvent : OneToOneEvent`
#### EndConversationEvent | Event provided when closing a conversation between a user and a bot `class EndConversationEvent : OneToOneEvent`
#### LoginEvent | A login event, in order to provide account linking. `class LoginEvent : OneToOneEvent`
#### LogoutEvent | An event used to cancel a LoginEvent. `class LogoutEvent : OneToOneEvent`
#### MediaStatusEvent | In order to listen to media event ("stop", "play, etc.). `class MediaStatusEvent : OneToOneEvent`
#### NewDeviceEvent | A new device event, in order to switch to another device. `class NewDeviceEvent : OneToOneEvent`
#### NoInputEvent | Event created when there is no input from the user (after an undetermined amount of time) `class NoInputEvent : OneToOneEvent`
#### PassThreadControlEvent | A pass thread control event. `class PassThreadControlEvent : OneToOneEvent`
#### ReferralParametersEvent | A referral event is an event that contains a String reference. `class ReferralParametersEvent : OneToOneEvent`
#### RequestThreadControlEvent | A request thread control event. `class RequestThreadControlEvent : OneToOneEvent`
#### StartConversationEvent | Event provided when starting a conversation a conversation between a user and a bot `class StartConversationEvent : OneToOneEvent`
#### SubscribingEvent | The "subscribe to application" event. `class SubscribingEvent : OneToOneEvent`
#### TakeThreadControlEvent | A take thread control event. `class TakeThreadControlEvent : OneToOneEvent`