10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
LicenseCheckoutResponse.h
1#ifndef TENDUKE_EE_LICENSING_LICENSECHECKOUTRESPONSE_H
2#define TENDUKE_EE_LICENSING_LICENSECHECKOUTRESPONSE_H
3
4#include "../LicensingError.h"
5#include "../LicensingResponse.h"
6#include "../Lease.h"
7
8#include <map>
9#include <string>
10
11namespace tenduke { namespace ee { namespace licensing {
12
13
26{
27public:
34 const std::map<std::string, tenduke::ee::licensing::Lease> &leases,
35 const std::map<std::string, tenduke::ee::licensing::LicensingError> &errors
37 {}
38
43 bool failed() override
44 {
45 return (hasErrors() && leases.empty());
46 }
47
48public:
50 const std::map<std::string, tenduke::ee::licensing::Lease> leases;
51};
52
53
54}}}
55
56#endif // TENDUKE_EE_LICENSING_LICENSECHECKOUTRESPONSE_H
LicenseCheckoutResponse(const std::map< std::string, tenduke::ee::licensing::Lease > &leases, const std::map< std::string, tenduke::ee::licensing::LicensingError > &errors)
Constructs new instance.
Definition LicenseCheckoutResponse.h:33
const std::map< std::string, tenduke::ee::licensing::Lease > leases
Leases, that is, successfully checked out licenses.
Definition LicenseCheckoutResponse.h:50
LicenseCheckoutResponse(const std::map< std::string, tenduke::ee::licensing::Lease > &leases, const std::map< std::string, tenduke::ee::licensing::LicensingError > &errors)
Constructs new instance.
Definition LicenseCheckoutResponse.h:33
bool failed() override
Checks it the entire request failed, i.e.
Definition LicenseCheckoutResponse.h:43
Response from tenduke::ee::licensing::LicensingRequest.
Definition LicensingResponse.h:17
LicensingResponse(const std::map< std::string, tenduke::ee::licensing::LicensingError > &errors)
Constructs new instance.
Definition LicensingResponse.h:23
const std::map< std::string, tenduke::ee::licensing::LicensingError > errors
Errors of this response.
Definition LicensingResponse.h:50
bool hasErrors() const
Checks if there are any errors.
Definition LicensingResponse.h:42
Classes, functions and globals related to 10Duke Enterprise licensing.
Definition AuthzLicensingClient.h:13
Classes, functions and globals of 10Duke Enterprise C++ Client.
Definition APIRequest.h:4
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4