olp-cpp-sdk  1.21.0
Public Member Functions | List of all members
olp::client::NetworkStatistics Class Reference

Network statistics with information on the outbound and inbound trafic during API calls. More...

#include <HttpResponse.h>

Public Member Functions

 NetworkStatistics (uint64_t bytes_uploaded, uint64_t bytes_downloaded)
 Creates the NetworkStatistics instance. More...
 
uint64_t GetBytesUploaded () const
 Get the number of bytes of outbound traffic. More...
 
uint64_t GetBytesDownloaded () const
 Get the number of bytes of inbound traffic. More...
 
NetworkStatisticsoperator+= (const NetworkStatistics &other)
 An overloaded addition operator for accumulating statistics.
 
NetworkStatistics operator+ (const NetworkStatistics &other) const
 An overloaded addition operator for accumulating statistics.
 

Detailed Description

Network statistics with information on the outbound and inbound trafic during API calls.

Constructor & Destructor Documentation

◆ NetworkStatistics()

olp::client::NetworkStatistics::NetworkStatistics ( uint64_t  bytes_uploaded,
uint64_t  bytes_downloaded 
)
inline

Creates the NetworkStatistics instance.

Parameters
bytes_uploadedThe number of bytes of outbound traffic during API call.
bytes_downloadedThe number of bytes of inbound traffic during API call.

Member Function Documentation

◆ GetBytesDownloaded()

uint64_t olp::client::NetworkStatistics::GetBytesDownloaded ( ) const
inline

Get the number of bytes of inbound traffic.

Returns
Number of bytes.

◆ GetBytesUploaded()

uint64_t olp::client::NetworkStatistics::GetBytesUploaded ( ) const
inline

Get the number of bytes of outbound traffic.

Returns
Number of bytes.

The documentation for this class was generated from the following file: