10Duke Enterprise C++ SDK
Toggle main menu visibility
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
10
namespace
tenduke
{
namespace
ee
{
namespace
licensing
{
11
17
class
LicenseReleaseResponse
:
public
tenduke::ee::licensing::LicensingResponse
18
{
19
public
:
25
LicenseReleaseResponse
(
26
const
std::vector<std::string> &
leaseIds
,
27
const
std::map<std::string, tenduke::ee::licensing::LicensingError> &errors
28
) :
tenduke
::
ee
::
licensing
::
LicensingResponse
(errors)
29
,
leaseIds
(
leaseIds
)
30
{}
31
32
// ::tenduke::ee::licensing::LicenseResponse interface
33
public
:
38
bool
failed
()
override
{
39
return
(hasErrors() &&
leaseIds
.empty());
40
}
41
42
public
:
44
const
std::vector<std::string>
leaseIds
;
45
};
46
47
}}}
48
49
#endif
//TENDUKE_EE_LICENSING_LICENSERELEASERESPONSE_H
tenduke::ee::licensing::LicensingResponse
Response from tenduke::ee::licensing::LicensingRequest.
Definition
LicensingResponse.h:17
tenduke::ee::licensing
Classes, functions and globals related to 10Duke Enterprise licensing.
Definition
AuthzLicensingClient.h:13
tenduke::ee::licensing::leaseIds
const std::vector< std::string > leaseIds
Id's of successfully released leases.
Definition
LicenseReleaseResponse.h:44
tenduke::ee::licensing::LicenseReleaseResponse
LicenseReleaseResponse(const std::vector< std::string > &leaseIds, const std::map< std::string, tenduke::ee::licensing::LicensingError > &errors)
Response from tenduke::ee::licensing::LicenseReleaseRequest.
Definition
LicenseReleaseResponse.h:25
tenduke::ee::licensing::failed
bool failed() override
Checks it the entire request failed, i.e.
Definition
LicenseReleaseResponse.h:38
tenduke::ee
Classes, functions and globals of 10Duke Enterprise C++ Client.
Definition
APIRequest.h:4
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
client
enterprise
api
src
licensing
release
LicenseReleaseResponse.h
Generated by
1.17.0