10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
tenduke::ee::licensing::LicenseReleaseResponse Class Reference

#include <LicenseReleaseResponse.h>

Detailed Description

Response from tenduke::ee::licensing::LicenseReleaseRequest.

Like the checkout response, the result is not atomic: Some items may have failed, some succeeded. See `tenduke::ee::licensing::LicenseCheckoutResponse" for details.

Inheritance diagram for tenduke::ee::licensing::LicenseReleaseResponse:
tenduke::ee::licensing::LicensingResponse

Public Member Functions

 LicenseReleaseResponse (const std::vector< std::string > &leaseIds, const std::map< std::string, tenduke::ee::licensing::LicensingError > &errors)
 Constructs new instance.
 
bool failed () override
 Checks it the entire request failed, i.e.
 
- Public Member Functions inherited from tenduke::ee::licensing::LicensingResponse
 LicensingResponse (const std::map< std::string, tenduke::ee::licensing::LicensingError > &errors)
 Constructs new instance.
 
bool hasErrors () const
 Checks if there are any errors.
 

Public Attributes

const std::vector< std::string > leaseIds
 Id's of successfully released leases.
 
- Public Attributes inherited from tenduke::ee::licensing::LicensingResponse
const std::map< std::string, tenduke::ee::licensing::LicensingErrorerrors
 Errors of this response.
 

Constructor & Destructor Documentation

◆ LicenseReleaseResponse()

tenduke::ee::licensing::LicenseReleaseResponse::LicenseReleaseResponse ( const std::vector< std::string > &  leaseIds,
const std::map< std::string, tenduke::ee::licensing::LicensingError > &  errors 
)
inline

Constructs new instance.

Parameters
leaseIdsID's of released leases
errorsthe failed leases. Key is the lease id.

Member Function Documentation

◆ failed()

bool tenduke::ee::licensing::LicenseReleaseResponse::failed ( )
inlineoverridevirtual

Checks it the entire request failed, i.e.

there are errors but no successfully released leases.

Returns
-

Implements tenduke::ee::licensing::LicensingResponse.


The documentation for this class was generated from the following file: