10Duke Enterprise C++ Client
|
#include <LicensingResponse.h>
Response from tenduke::ee::licensing::LicensingRequest
.
This is abstract base class for licensing responses.
Public Member Functions | |
LicensingResponse (const std::map< std::string, tenduke::ee::licensing::LicensingError > &errors) | |
Constructs new instance. | |
virtual bool | failed ()=0 |
Checks if request failed. | |
bool | hasErrors () const |
Checks if there are any errors. | |
Public Attributes | |
const std::map< std::string, tenduke::ee::licensing::LicensingError > | errors |
Errors of this response. | |
|
inlineexplicit |
Constructs new instance.
errors | - |
|
pure virtual |
Checks if request failed.
Note the semantics: Current implementation returns true
if the response contains only failed items. If there are any successful items, returns false
.
Implemented in tenduke::ee::licensing::LicenseCheckoutResponse, and tenduke::ee::licensing::LicenseReleaseResponse.
|
inline |
Checks if there are any errors.
const std::map<std::string, tenduke::ee::licensing::LicensingError> tenduke::ee::licensing::LicensingResponse::errors |
Errors of this response.
Key is identifier, depending on the request. For checkouts the key is the licensed item name. For license release the key is the lease-id.