Reaction

constructor(    messageId: String = "",     type: String = "",     score: Int = 0,     user: User? = null,     userId: String = "",     createdAt: Date? = null,     createdLocallyAt: Date? = null,     updatedAt: Date? = null,     deletedAt: Date? = null,     syncStatus: SyncStatus = SyncStatus.COMPLETED,     extraData: Map<String, Any> = mapOf(),     enforceUnique: Boolean = false)

Parameters

messageId

The id of the message.

type

The type of the reaction.

score

The score(count) of the reaction, used if you want to allow users to clap/like etc multiple times.

user

The user who sent the reaction.

userId

The id of the user who sent the reaction.

createdAt

The date when the reaction was created.

createdLocallyAt

The date when the reaction was created locally.

updatedAt

The date when the reaction was updated.

deletedAt

The date when the reaction was deleted.

syncStatus

The synchronization status of the reaction.

enforceUnique

If true, only one reaction of this type is allowed per user.