Class: TD::Types::NetworkStatisticsEntry::Call

Inherits:
TD::Types::NetworkStatisticsEntry show all
Defined in:
lib/tdlib/types/network_statistics_entry/call.rb

Overview

Contains information about the total amount of data that was used for calls.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#durationFloat

Total call duration, in seconds.

Returns:

  • (Float)

    the current value of duration



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

def duration
  @duration
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/call.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/call.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/call.rb', line 9

def sent_bytes
  @sent_bytes
end