ScopeNotificationSettings class final

Contains information about notification settings for several chats

Inheritance

Constructors

ScopeNotificationSettings({required int muteFor, required int soundId, required bool showPreview, required bool useDefaultMuteStories, required bool muteStories, required int storySoundId, required bool showStorySender, required bool disablePinnedMessageNotifications, required bool disableMentionNotifications, dynamic extra, int? clientId})
Contains information about notification settings for several chats
const
ScopeNotificationSettings.fromJson(Map<String, dynamic> json)
Parses a ScopeNotificationSettings from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object.
final
disableMentionNotifications → bool
True, if notifications for messages with mentions will be created as for an ordinary unread message
final
disablePinnedMessageNotifications → bool
True, if notifications for incoming pinned messages will be created as for an ordinary unread message
final
extra → dynamic
"@extra" of the request this object answers.
final
hashCode → int
The hash code for this object.
no setterinherited
muteFor → int
Time left before notifications will be unmuted, in seconds
final
muteStories → bool
True, if story notifications are disabled
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showPreview → bool
True, if message content must be displayed in notifications
final
showStorySender → bool
True, if the sender of stories must be displayed in notifications
final
soundId → int
Identifier of the notification sound to be played; 0 if sound is disabled
final
storySoundId → int
Identifier of the notification sound to be played for stories; 0 if sound is disabled
final
useDefaultMuteStories → bool
If true, story notifications are received only for the first 5 chats from topChatCategoryUsers regardless of the value of mute_stories
final

Methods

copyWith({int? muteFor, int? soundId, bool? showPreview, bool? useDefaultMuteStories, bool? muteStories, int? storySoundId, bool? showStorySender, bool? disablePinnedMessageNotifications, bool? disableMentionNotifications, dynamic extra, int? clientId}) → ScopeNotificationSettings
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.