10Duke Scale C++ Client
Loading...
Searching...
No Matches
LicenseCheckoutResponse.h
1#ifndef TENDUKE_SE_LICENSING_LICENSECHECKOUTRESPONSE_H
2#define TENDUKE_SE_LICENSING_LICENSECHECKOUTRESPONSE_H
3
4#include "./LicenseCheckoutError.h"
5#include "../../Lease.h"
6
7#include <vector>
8
9namespace tenduke { namespace se { namespace licensing {
10
17{
18public:
25 const std::vector<::tenduke::se::licensing::Lease> &leases,
26 const std::vector<::tenduke::se::licensing::LicenseCheckoutError> &errors
27 ) : errors(errors), leases(leases) {}
28
33 bool hasErrors() const
34 {
35 return !errors.empty();
36 }
37
38public:
40 const std::vector<::tenduke::se::licensing::LicenseCheckoutError> errors;
42 const std::vector<::tenduke::se::licensing::Lease> leases;
43};
44
45}}}
46
47#endif //TENDUKE_SE_LICENSING_LICENSECHECKOUTRESPONSE_H
Response from license checkout call.
Definition LicenseCheckoutResponse.h:17
const std::vector<::tenduke::se::licensing::Lease > leases
Leases of successfully checked out licenses.
Definition LicenseCheckoutResponse.h:42
bool hasErrors() const
Checks if the any of the licenses failed to checkout.
Definition LicenseCheckoutResponse.h:33
LicenseCheckoutResponse(const std::vector<::tenduke::se::licensing::Lease > &leases, const std::vector<::tenduke::se::licensing::LicenseCheckoutError > &errors)
Constructs new instance.
Definition LicenseCheckoutResponse.h:24
const std::vector<::tenduke::se::licensing::LicenseCheckoutError > errors
Errors.
Definition LicenseCheckoutResponse.h:40
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7