10Duke Scale C++ Client
Loading...
Searching...
No Matches
LicenseHeartbeatResponse.h
1#ifndef TENDUKE_SE_LICENSING_LICENSEHEARTBEATRESPONSE_H
2#define TENDUKE_SE_LICENSING_LICENSEHEARTBEATRESPONSE_H
3
4#include "./LicenseHeartbeatError.h"
5#include "../../Lease.h"
6
7#include <vector>
8
9namespace tenduke { namespace se { namespace licensing {
10
19{
20public:
27 const std::vector<::tenduke::se::licensing::Lease> &leases,
28 const std::vector<::tenduke::se::licensing::LicenseHeartbeatError> &errors
29 ) : errors(errors)
30 , leases(leases)
31 {}
32
37 bool hasErrors() const
38 {
39 return !errors.empty();
40 }
41
42public:
44 const std::vector<::tenduke::se::licensing::Lease> leases;
45
47 const std::vector<::tenduke::se::licensing::LicenseHeartbeatError> errors;
48};
49
50}}}
51
52#endif //TENDUKE_SE_LICENSING_LICENSEHEARTBEATRESPONSE_H
Response from license heartbeat call.
Definition LicenseHeartbeatResponse.h:19
const std::vector<::tenduke::se::licensing::Lease > leases
The successfully heartbeat leases.
Definition LicenseHeartbeatResponse.h:44
const std::vector<::tenduke::se::licensing::LicenseHeartbeatError > errors
The errors.
Definition LicenseHeartbeatResponse.h:47
bool hasErrors() const
Checks if any of the leases failed to heartbeat.
Definition LicenseHeartbeatResponse.h:37
LicenseHeartbeatResponse(const std::vector<::tenduke::se::licensing::Lease > &leases, const std::vector<::tenduke::se::licensing::LicenseHeartbeatError > &errors)
Constructs new instance.
Definition LicenseHeartbeatResponse.h:26
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7