Maps SDK for C++ 1.0.0
Loading...
Searching...
No Matches
gem::TransferStatistics Class Reference

TransferStatistics object. More...

Inheritance diagram for gem::TransferStatistics:
Collaboration diagram for gem::TransferStatistics:

Public Member Functions

 TransferStatistics (TransferStatistics &&)=default
 Default move constructor.
TransferStatisticsoperator= (TransferStatistics &&ts)=default
 Default move operator.
LargeInteger getUpload () const noexcept
 Get the overall uploaded data size in bytes.
LargeInteger getDownload () const noexcept
 Get the overall downloaded data size in bytes.
LargeInteger getRequests () const noexcept
 Get the overall requests count.
LargeInteger getUpload (int networkType) const noexcept
 Get the uploaded data size in bytes / network type ( see INetworkListener::ENetworkType ).
LargeInteger getDownload (int networkType) const noexcept
 Get the overall downloaded data size in bytes / network type ( see INetworkListener::ENetworkType ).
LargeInteger getRequests (int networkType) const noexcept
 Get the overall requests count / network type ( see INetworkListener::ENetworkType ).
void resetStatistics () noexcept
 Reset transfer statistics.

Detailed Description

TransferStatistics object.

Implements share read/write Api object over ITransferStatistics.

Member Function Documentation

◆ getDownload() [1/2]

LargeInteger gem::TransferStatistics::getDownload ( ) const
inlinenoexcept

Get the overall downloaded data size in bytes.

Returns
The overall downloaded data size in bytes

◆ getDownload() [2/2]

LargeInteger gem::TransferStatistics::getDownload ( int networkType) const
inlinenoexcept

Get the overall downloaded data size in bytes / network type ( see INetworkListener::ENetworkType ).

Parameters
networkTypeThe network type
Returns
The overall downloaded data size in bytes

◆ getRequests() [1/2]

LargeInteger gem::TransferStatistics::getRequests ( ) const
inlinenoexcept

Get the overall requests count.

Returns
The overall requests count

◆ getRequests() [2/2]

LargeInteger gem::TransferStatistics::getRequests ( int networkType) const
inlinenoexcept

Get the overall requests count / network type ( see INetworkListener::ENetworkType ).

Parameters
networkTypeThe network type
Returns
The overall requests count

◆ getUpload() [1/2]

LargeInteger gem::TransferStatistics::getUpload ( ) const
inlinenoexcept

Get the overall uploaded data size in bytes.

Returns
The overall uploaded data size in bytes

◆ getUpload() [2/2]

LargeInteger gem::TransferStatistics::getUpload ( int networkType) const
inlinenoexcept

Get the uploaded data size in bytes / network type ( see INetworkListener::ENetworkType ).

Parameters
networkTypeThe network type
Returns
The uploaded data size in bytes

◆ operator=()

TransferStatistics & gem::TransferStatistics::operator= ( TransferStatistics && ts)
default

Default move operator.

Returns
TransferStatistics&
Parameters
tsTransferStatistics