MessageReactionUpdated class

Represents a change of a reaction on a message performed by a user.

Implemented types

Constructors

MessageReactionUpdated({required Chat chat, required int messageId, User? user, Chat? actorChat, required int date, required List<ReactionType> oldReaction, required List<ReactionType> newReaction})
Creates a new instance of MessageReactionUpdated.
const
MessageReactionUpdated.fromJson(Map<String, dynamic> json)
Creates a MessageReactionUpdated object from JSON object.
factory

Properties

actorChat Chat?
The chat on behalf of which the reaction was changed, if the user is anonymous.
final
chat Chat
The chat containing the message the user reacted to.
final
date int
Date of the change in Unix time.
final
hashCode int
The hash code for this object.
no setterinherited
messageId int
Unique identifier of the message inside the chat.
final
newReaction List<ReactionType>
New list of reaction types that have been set by the user.
final
oldReaction List<ReactionType>
Previous list of reaction types that were set by the user.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
user User?
The user that changed the reaction, if the user isn't anonymous.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a MessageReactionUpdated object to JSON object.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited