NetworkStatisticsEntryFile class final

NetworkStatisticsEntryFile (networkStatisticsEntryFile) - child of NetworkStatisticsEntry

Contains information about the total amount of data that was used to send and receive files.

  • fileType: Type of the file the data is part of; pass null if the data isn't related to files (optional).
  • networkType: Type of the network the data was sent through. Call setNetworkType to maintain the actual network type.
  • sentBytes: Total number of bytes sent.
  • receivedBytes: Total number of bytes received.
Inheritance

Constructors

NetworkStatisticsEntryFile({FileType? fileType, required NetworkType networkType, required int sentBytes, required int receivedBytes})
NetworkStatisticsEntryFile (networkStatisticsEntryFile) - child of NetworkStatisticsEntry
const
NetworkStatisticsEntryFile.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

clientId → int?
Client ID, from which this object was received
no setterinherited
currentObjectId → String
TDLib object type for current class instance
no setteroverride
extra → dynamic
A sign from TDLib update
no setterinherited
fileType → FileType?
Type of the file the data is part of; pass null if the data isn't related to files
final
hashCode → int
The hash code for this object.
no setterinherited
networkType → NetworkType
Type of the network the data was sent through. Call setNetworkType to maintain the actual network type
final
receivedBytes → int
Total number of bytes received
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sentBytes → int
Total number of bytes sent
final

Methods

copyWith({FileType? fileType, NetworkType? networkType, int? sentBytes, int? receivedBytes}) → NetworkStatisticsEntryFile
Copy model with modified properties.
override
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