MessageReactionUpdated class abstract

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

Implemented types
Annotations
  • @freezed

Constructors

MessageReactionUpdated.new({@JsonKey(name: 'chat') required Chat chat, @JsonKey(name: 'message_id') required int messageId, @JsonKey(name: 'user') User? user, @JsonKey(name: 'actor_chat') Chat? actorChat, @JsonKey(name: 'date') required int date, @JsonKey(name: 'old_reaction') required List<ReactionType> oldReaction, @JsonKey(name: 'new_reaction') required List<ReactionType> newReaction})
Creates a new instance of MessageReactionUpdated.
const
factory
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.
no setterinherited
chat Chat
The chat containing the message the user reacted to.
no setterinherited
copyWith → $MessageReactionUpdatedCopyWith<MessageReactionUpdated>
Create a copy of MessageReactionUpdated with the given fields replaced by the non-null parameter values.
no setterinherited
date int
Date of the change in Unix time.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
messageId int
Unique identifier of the message inside the chat.
no setterinherited
newReaction List<ReactionType>
New list of reaction types that have been set by the user.
no setterinherited
oldReaction List<ReactionType>
Previous list of reaction types that were set by the user.
no setterinherited
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.
no setterinherited

Methods

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

Operators

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