ChatNotificationSettings class final
Contains information about notification settings for a chat or a forum topic
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) -
Parses a ChatNotificationSettings from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- disableMentionNotifications → bool
-
If true, notifications for messages with mentions will be created as for an ordinary unread message
final
- disablePinnedMessageNotifications → bool
-
If true, notifications for incoming pinned messages will be created as for an ordinary unread message
final
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- 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 for the chat
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 for messages; 0 if sound is disabled
final
- storySoundId → int
-
Identifier of the notification sound to be played for stories; 0 if sound is disabled
final
- useDefaultDisableMentionNotifications → bool
-
If true, the value for the relevant type of chat or the forum chat is used instead of disable_mention_notifications
final
- useDefaultDisablePinnedMessageNotifications → bool
-
If true, the value for the relevant type of chat or the forum chat is used instead of disable_pinned_message_notifications
final
- useDefaultMuteFor → bool
-
If true, the value for the relevant type of chat or the forum chat is used instead of mute_for
final
- useDefaultMuteStories → bool
-
If true, the value for the relevant type of chat is used instead of mute_stories
final
- useDefaultShowPreview → bool
-
If true, the value for the relevant type of chat or the forum chat is used instead of show_preview
final
- useDefaultShowStorySender → bool
-
If true, the value for the relevant type of chat is used instead of show_story_sender
final
- useDefaultSound → bool
-
If true, the value for the relevant type of chat or the forum chat is used instead of sound_id
final
- useDefaultStorySound → bool
-
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 -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto 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.