10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
LicenseReleaseResponse.h
1#ifndef TENDUKE_EE_LICENSING_LICENSERELEASERESPONSE_H
2#define TENDUKE_EE_LICENSING_LICENSERELEASERESPONSE_H
3
4#include "../LicensingResponse.h"
5
6#include <map>
7#include <string>
8#include <vector>
9
10namespace tenduke { namespace ee { namespace licensing {
11
18{
19public:
26 const std::vector<std::string> &leaseIds,
27 const std::map<std::string, tenduke::ee::licensing::LicensingError> &errors
28 ) : tenduke::ee::licensing::LicensingResponse(errors)
30 {}
31
32 // ::tenduke::ee::licensing::LicenseResponse interface
33public:
38 bool failed() override {
39 return (hasErrors() && leaseIds.empty());
40 }
41
42public:
44 const std::vector<std::string> leaseIds;
45};
46
47}}}
48
49#endif //TENDUKE_EE_LICENSING_LICENSERELEASERESPONSE_H
Response from tenduke::ee::licensing::LicenseReleaseRequest.
Definition LicenseReleaseResponse.h:18
const std::vector< std::string > leaseIds
Id's of successfully released leases.
Definition LicenseReleaseResponse.h:44
bool failed() override
Checks it the entire request failed, i.e.
Definition LicenseReleaseResponse.h:38
LicenseReleaseResponse(const std::vector< std::string > &leaseIds, const std::map< std::string, tenduke::ee::licensing::LicensingError > &errors)
Constructs new instance.
Definition LicenseReleaseResponse.h:25
Response from tenduke::ee::licensing::LicensingRequest.
Definition LicensingResponse.h:17
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
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4