Class: TD::Types::NetworkStatisticsEntry::File

Inherits:
TD::Types::NetworkStatisticsEntry show all
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

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#file_typeTD::Types::FileType

Type of the file the data is part of.

Returns:



9
10
11
# File 'lib/tdlib/types/network_statistics_entry/file.rb', line 9

def file_type
  @file_type
end

#network_typeTD::Types::NetworkType

Type of the network the data was sent through. Call setNetworkType to maintain the actual network type.

Returns:



9
10
11
# File 'lib/tdlib/types/network_statistics_entry/file.rb', line 9

def network_type
  @network_type
end

#received_bytesInteger

Total number of bytes received.

Returns:

  • (Integer)

    the current value of received_bytes



9
10
11
# File 'lib/tdlib/types/network_statistics_entry/file.rb', line 9

def received_bytes
  @received_bytes
end

#sent_bytesInteger

Total number of bytes sent.

Returns:

  • (Integer)

    the current value of sent_bytes



9
10
11
# File 'lib/tdlib/types/network_statistics_entry/file.rb', line 9

def sent_bytes
  @sent_bytes
end