ReactionNotificationSettings class final

Contains information about notification settings for reactions and poll votes

Inheritance

Constructors

ReactionNotificationSettings({required ReactionNotificationSource messageReactionSource, required ReactionNotificationSource storyReactionSource, required ReactionNotificationSource pollVoteSource, required int soundId, required bool showPreview})
Contains information about notification settings for reactions and poll votes
const
ReactionNotificationSettings.fromJson(Map<String, dynamic> json)
Parses a ReactionNotificationSettings from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
messageReactionSource → ReactionNotificationSource
Source of message reactions for which notifications are shown
final
pollVoteSource → ReactionNotificationSource
Source of poll votes for which notifications are shown
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showPreview → bool
True, if reaction sender and emoji must be displayed in notifications
final
soundId → int
Identifier of the notification sound to be played; 0 if sound is disabled; pass -1 to use the app-dependent default sound
final
storyReactionSource → ReactionNotificationSource
Source of story reactions for which notifications are shown
final

Methods

copyWith({ReactionNotificationSource? messageReactionSource, ReactionNotificationSource? storyReactionSource, ReactionNotificationSource? pollVoteSource, int? soundId, bool? showPreview}) → ReactionNotificationSettings
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.