10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::se::licensing::LicenseHeartbeatResponse Class Reference

#include <LicenseHeartbeatResponse.h>

Detailed Description

Response from license heartbeat call.

NOTE: 0-n licenses can fail and 0-n licenses can succeed at the same time.

NOTE: Heartbeat changes the lease-id of a lease.

Public Member Functions

 LicenseHeartbeatResponse (const std::vector<::tenduke::se::licensing::Lease > &leases, const std::vector<::tenduke::se::licensing::LicenseHeartbeatError > &errors)
 Constructs new instance.
 
bool hasErrors () const
 Checks if any of the leases failed to heartbeat.
 

Public Attributes

const std::vector<::tenduke::se::licensing::Leaseleases
 The successfully heartbeat leases.
 
const std::vector<::tenduke::se::licensing::LicenseHeartbeatErrorerrors
 The errors.
 

Constructor & Destructor Documentation

◆ LicenseHeartbeatResponse()

tenduke::se::licensing::LicenseHeartbeatResponse::LicenseHeartbeatResponse ( const std::vector<::tenduke::se::licensing::Lease > &  leases,
const std::vector<::tenduke::se::licensing::LicenseHeartbeatError > &  errors 
)
inlineexplicit

Constructs new instance.

Parameters
leasesthe successfully heartbeat leases
errorsthe errors

Member Function Documentation

◆ hasErrors()

bool tenduke::se::licensing::LicenseHeartbeatResponse::hasErrors ( ) const
inline

Checks if any of the leases failed to heartbeat.

Returns
-

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