UpdateUnreadChatCount class final

Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if the message database is used

Inheritance

Constructors

UpdateUnreadChatCount({required ChatList chatList, required int totalCount, required int unreadCount, required int unreadUnmutedCount, required int markedAsUnreadCount, required int markedAsUnreadUnmutedCount, dynamic extra, int? clientId})
Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if the message database is used
const
UpdateUnreadChatCount.fromJson(Map<String, dynamic> json)
Parses a UpdateUnreadChatCount from TDLib JSON.
factory

Properties

chatList → ChatList
The chat list with changed number of unread messages
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
markedAsUnreadCount → int
Total number of chats marked as unread
final
markedAsUnreadUnmutedCount → int
Total number of unmuted chats marked as unread
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalCount → int
Approximate total number of chats in the chat list
final
unreadCount → int
Total number of unread chats
final
unreadUnmutedCount → int
Total number of unread unmuted chats
final

Methods

copyWith({ChatList? chatList, int? totalCount, int? unreadCount, int? unreadUnmutedCount, int? markedAsUnreadCount, int? markedAsUnreadUnmutedCount, dynamic extra, int? clientId}) → UpdateUnreadChatCount
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.