library / io.getstream.chat.android.livedata.entity / ReactionEntity / <init>

<init>

ReactionEntity(r: Reaction)

create a reactionEntity from a reaction object

ReactionEntity(messageId: String, userId: String, type: String)

The ReactionEntity

message id, user id and type are required created at and score are optional. score allows you to implement reactions where one user can like/clap something multiple times

You can convert a Reaction object from the low level client to a ReactionEntity like this: val reactionEntity = ReactionEntity(reaction) and back: reactionEntity.toUser()