Class: TD::Types::NetworkStatisticsEntry::File
- Inherits:
-
TD::Types::NetworkStatisticsEntry
- Object
- Dry::Struct
- Base
- TD::Types::NetworkStatisticsEntry
- TD::Types::NetworkStatisticsEntry::File
- Defined in:
- lib/tdlib/types/network_statistics_entry/file.rb
Overview
Contains information about the total amount of data that was used to send and receive files.
Instance Attribute Summary collapse
-
#file_type ⇒ TD::Types::FileType
Type of the file the data is part of; pass null if the data isn’t related to files.
-
#network_type ⇒ TD::Types::NetworkType
Type of the network the data was sent through.
-
#received_bytes ⇒ Integer
Total number of bytes received.
-
#sent_bytes ⇒ Integer
Total number of bytes sent.
Method Summary
Methods inherited from Base
Instance Attribute Details
#file_type ⇒ TD::Types::FileType
Type of the file the data is part of; pass null if the data isn’t related to files.
10 11 12 |
# File 'lib/tdlib/types/network_statistics_entry/file.rb', line 10 def file_type @file_type end |
#network_type ⇒ TD::Types::NetworkType
Type of the network the data was sent through. Call setNetworkType to maintain the actual network type.
10 11 12 |
# File 'lib/tdlib/types/network_statistics_entry/file.rb', line 10 def network_type @network_type end |
#received_bytes ⇒ Integer
Total number of bytes received.
10 11 12 |
# File 'lib/tdlib/types/network_statistics_entry/file.rb', line 10 def received_bytes @received_bytes end |
#sent_bytes ⇒ Integer
Total number of bytes sent.
10 11 12 |
# File 'lib/tdlib/types/network_statistics_entry/file.rb', line 10 def sent_bytes @sent_bytes end |