ChatNotificationSettings class

Contains information about notification settings for a chat or a froum topic

Inheritance

Constructors

ChatNotificationSettings({String? extra, int? client_id, Bool? use_default_mute_for, int32? mute_for, Bool? use_default_sound, int64? sound_id, Bool? use_default_show_preview, Bool? show_preview, Bool? use_default_disable_pinned_message_notifications, Bool? disable_pinned_message_notifications, Bool? use_default_disable_mention_notifications, Bool? disable_mention_notifications})
ChatNotificationSettings.fromMap(Map<String, dynamic> map)

Properties

client_id int?
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
disable_mention_notifications Bool?
If true, notifications for messages with mentions will be created as for an ordinary unread message
getter/setter pair
disable_pinned_message_notifications Bool?
If true, notifications for incoming pinned messages will be created as for an ordinary unread message
getter/setter pair
extra String?
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
mute_for int32?
Time left before notifications will be unmuted, in seconds
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
show_preview Bool?
True, if message content must be displayed in notifications
getter/setter pair
sound_id int64?
Identifier of the notification sound to be played; 0 if sound is disabled
getter/setter pair
tdType String
JSON object type; maps to the field @type.
no setteroverride
use_default_disable_mention_notifications Bool?
If true, disable_mention_notifications is ignored and the value for the relevant type of chat or the forum chat is used instead
getter/setter pair
use_default_disable_pinned_message_notifications Bool?
If true, disable_pinned_message_notifications is ignored and the value for the relevant type of chat or the forum chat is used instead
getter/setter pair
use_default_mute_for Bool?
If true, mute_for is ignored and the value for the relevant type of chat or the forum chat is used instead
getter/setter pair
use_default_show_preview Bool?
If true, show_preview is ignored and the value for the relevant type of chat or the forum chat is used instead
getter/setter pair
use_default_sound Bool?
If true, the value for the relevant type of chat or the forum chat is used instead of sound_id
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({dynamic skipNulls = true}) String
Serialize a Td instance to a JSON string. If skipNulls is true the fields with null values are not serialized.
inherited
toMap({dynamic skipNulls = true}) Map<String, dynamic>
Create a Map from a Td instance.
override
toString({dynamic skipNulls = false}) String
A string representation of this object.
inherited

Operators

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