ChatNotificationSettings class

Inheritance

Constructors

ChatNotificationSettings({required bool useDefaultMuteFor, required int muteFor, required bool useDefaultSound, required int soundId, required bool useDefaultShowPreview, required bool showPreview, required bool useDefaultMuteStories, required bool muteStories, required bool useDefaultStorySound, required int storySoundId, required bool useDefaultShowStorySender, required bool showStorySender, required bool useDefaultDisablePinnedMessageNotifications, required bool disablePinnedMessageNotifications, required bool useDefaultDisableMentionNotifications, required bool disableMentionNotifications})
Contains information about notification settings for a chat or a forum topic
const
ChatNotificationSettings.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

clientId int?
client identifier
no setterinherited
disableMentionNotifications bool
disableMentionNotifications If true, notifications for messages with mentions will be created as for an ordinary unread message
final
disablePinnedMessageNotifications bool
disablePinnedMessageNotifications If true, notifications for incoming pinned messages will be created as for an ordinary unread message
final
extra → dynamic
callback sign
no setterinherited
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 for messages; 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
useDefaultDisableMentionNotifications bool
useDefaultDisableMentionNotifications If true, disable_mention_notifications is ignored and the value for the relevant type of chat or the forum chat is used instead
final
useDefaultDisablePinnedMessageNotifications bool
useDefaultDisablePinnedMessageNotifications If true, disable_pinned_message_notifications is ignored and the value for the relevant type of chat or the forum chat is used instead
final
useDefaultMuteFor bool
useDefaultMuteFor If true, mute_for is ignored and the value for the relevant type of chat or the forum chat is used instead
final
useDefaultMuteStories bool
useDefaultMuteStories If true, mute_stories is ignored and the value for the relevant type of chat is used instead
final
useDefaultShowPreview bool
useDefaultShowPreview If true, show_preview is ignored and the value for the relevant type of chat or the forum chat is used instead
final
useDefaultShowStorySender bool
useDefaultShowStorySender If true, show_story_sender is ignored and the value for the relevant type of chat is used instead
final
useDefaultSound bool
useDefaultSound If true, the value for the relevant type of chat or the forum chat is used instead of sound_id
final
useDefaultStorySound bool
useDefaultStorySound If true, the value for the relevant type of chat is used instead of story_sound_id
final

Methods

copyWith({bool? useDefaultMuteFor, int? muteFor, bool? useDefaultSound, int? soundId, bool? useDefaultShowPreview, bool? showPreview, bool? useDefaultMuteStories, bool? muteStories, bool? useDefaultStorySound, int? storySoundId, bool? useDefaultShowStorySender, bool? showStorySender, bool? useDefaultDisablePinnedMessageNotifications, bool? disablePinnedMessageNotifications, bool? useDefaultDisableMentionNotifications, bool? disableMentionNotifications}) ChatNotificationSettings
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