ScopeNotificationSettings class

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)
Parse from a json
factory

Properties

clientId int?
clientId client identifier
final
disableMentionNotifications bool
disableMentionNotifications True, if notifications for messages with mentions will be created as for an ordinary unread message
final
disablePinnedMessageNotifications bool
disablePinnedMessageNotifications True, if notifications for incoming pinned messages will be created as for an ordinary unread message
final
extra → dynamic
extra callback sign
final
hashCode int
The hash code for this object.
no setterinherited
muteFor int
muteFor Time left before notifications will be unmuted, in seconds
final
muteStories bool
muteStories True, if story notifications are received without sound
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showPreview bool
showPreview True, if message content must be displayed in notifications
final
showStorySender bool
showStorySender True, if the sender of stories must be displayed in notifications
final
soundId int
soundId Identifier of the notification sound to be played; 0 if sound is disabled
final
storySoundId int
storySoundId Identifier of the notification sound to be played for stories; 0 if sound is disabled
final
useDefaultMuteStories bool
useDefaultMuteStories If true, mute_stories is ignored and stories are unmuted only for the first 5 chats from topChatCategoryUsers
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
getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String