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, skipPush: Boolean = false, emojiCode: String? = null)

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. IMPORTANT: Don't set this manually when creating the reaction as it will be ignored. This field is used internally for offline sync and will be overridden. To enforceUnique reactions, use the parameter on relevant method instead.

skipPush

If true, sending a push notification will be skipped for this reaction. IMPORTANT: Don't set this manually when creating the reaction as it will be ignored. This field is used internally for offline sync and will be overridden. To skip push for reactions, use the parameter on relevant method instead.

emojiCode

Optional emoji to be shown in the push notification delivered for the reaction (instead of :type:).