ReactionEvent class
Represents an reaction event that happens on BaseMessage.
This object is needed to apply to the BaseMessage based on messageId when this is acquired from ChannelEventHandler.onReactionUpdated
- Implemented types
- Annotations
-
- @JsonSerializable(createToJson: false)
Constructors
- ReactionEvent({required ChannelType channelType, required String channelUrl, required int messageId, required String key, required String userId, required ReactionEventAction operation, required int updatedAt})
-
ReactionEvent.fromJson(Map<
String, dynamic> json) -
factory
Properties
- channelType → ChannelType
-
final
- channelUrl → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
Reaction key
final
- messageId ↔ int
-
Corresponding message id
getter/setter pair
- operation → ReactionEventAction
-
Operation type of this event
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updatedAt → int
-
Timestamp for update
final
- userId → String
-
User's id who triggers this event
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited