UpdateNotificationGroup class final

A list of active notifications in a notification group has changed

Inheritance

Constructors

UpdateNotificationGroup({required int notificationGroupId, required NotificationGroupType type, required int chatId, required int notificationSettingsChatId, required int notificationSoundId, required int totalCount, required List<Notification> addedNotifications, required List<int> removedNotificationIds, dynamic extra, int? clientId})
A list of active notifications in a notification group has changed
const
UpdateNotificationGroup.fromJson(Map<String, dynamic> json)
Parses a UpdateNotificationGroup from TDLib JSON.
factory

Properties

addedNotifications → List<Notification>
List of added group notifications, sorted by notification identifier
final
chatId → int
Identifier of a chat to which all notifications in the group belong
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
extra → dynamic
"@extra" of the request this object answers.
final
hashCode → int
The hash code for this object.
no setterinherited
notificationGroupId → int
Unique notification group identifier
final
notificationSettingsChatId → int
Chat identifier, which notification settings must be applied to the added notifications
final
notificationSoundId → int
Identifier of the notification sound to be played; 0 if sound is disabled
final
removedNotificationIds → List<int>
Identifiers of removed group notifications, sorted by notification identifier
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalCount → int
Total number of unread notifications in the group, can be bigger than number of active notifications
final
type → NotificationGroupType
New type of the notification group
final

Methods

copyWith({int? notificationGroupId, NotificationGroupType? type, int? chatId, int? notificationSettingsChatId, int? notificationSoundId, int? totalCount, List<Notification>? addedNotifications, List<int>? removedNotificationIds, dynamic extra, int? clientId}) → UpdateNotificationGroup
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
override
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.