ReactionEvent class Null safety
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.
read-onlyinherited
- key → String
-
Reaction key
final
- messageId ↔ int
-
Corresponding message id
read / write
- operation → ReactionEventAction
-
Operation type of this event
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- updatedAt → int
-
Timestamp for update
final
- userId → String
-
User's id who triggers this event
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited