10Duke Scale C++ Client
Loading...
Searching...
No Matches
LicenseReleaseResponse.h
1#ifndef TENDUKE_SE_LICENSING_LICENSERELEASERESPONSE_H
2#define TENDUKE_SE_LICENSING_LICENSERELEASERESPONSE_H
3
4#include "./LicenseReleaseResult.h"
5#include "./LicenseReleaseError.h"
6
7#include <vector>
8
9namespace tenduke { namespace se { namespace licensing {
10
17{
18public:
25 const std::vector<::tenduke::se::licensing::LicenseReleaseResult> &results,
26 const std::vector<::tenduke::se::licensing::LicenseReleaseError> &errors
27 )
29 {}
30
35 bool hasErrors() const
36 {
37 return !errors.empty();
38 }
39
40public:
42 const std::vector<::tenduke::se::licensing::LicenseReleaseError> errors;
43
45 const std::vector<::tenduke::se::licensing::LicenseReleaseResult> results;
46};
47
48}}}
49
50#endif //TENDUKE_SE_LICENSING_LICENSERELEASERESPONSE_H
Response from license release call.
Definition LicenseReleaseResponse.h:17
LicenseReleaseResponse(const std::vector<::tenduke::se::licensing::LicenseReleaseResult > &results, const std::vector<::tenduke::se::licensing::LicenseReleaseError > &errors)
Constructs new instance.
Definition LicenseReleaseResponse.h:24
bool hasErrors() const
Checks if any lease failed to release.
Definition LicenseReleaseResponse.h:35
const std::vector<::tenduke::se::licensing::LicenseReleaseError > errors
Errors.
Definition LicenseReleaseResponse.h:42
const std::vector<::tenduke::se::licensing::LicenseReleaseResult > results
Sccessfully released leases.
Definition LicenseReleaseResponse.h:45
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7