StorageStatisticsByChat class final
StorageStatisticsByChat (storageStatisticsByChat) - basic class
Contains the storage usage statistics for a specific chat.
- chatId: Chat identifier; 0 if none.
- size: Total size of the files in the chat, in bytes.
- count: Total number of files in the chat.
- byFileType: Statistics split by file types.
Constructors
-
StorageStatisticsByChat({required int chatId, required int size, required int count, required List<
StorageStatisticsByFileType> byFileType}) -
StorageStatisticsByChat (storageStatisticsByChat) - basic class
const
-
StorageStatisticsByChat.fromJson(Map<
String, dynamic> json) -
Parse from a json
factory
Properties
-
byFileType
→ List<
StorageStatisticsByFileType> -
Statistics split by file types
final
- chatId → int
-
Chat identifier; 0 if none
final
- clientId → int?
-
Client ID, from which this object was received
no setterinherited
- count → int
-
Total number of files in the chat
final
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- extra → dynamic
-
A sign from TDLib update
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
Total size of the files in the chat, in bytes
final
Methods
-
copyWith(
{int? chatId, int? size, int? count, List< StorageStatisticsByFileType> ? byFileType}) → StorageStatisticsByChat - Copy model with modified properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Convert model to TDLib JSON format
override
-
toString(
) → String -
Convert model to TDLib JSON format, encoded into String.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultObjectId → const String
- TDLib object type