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

#include <LicensingResponse.h>

Detailed Description

Response from tenduke::ee::licensing::LicensingRequest.

This is abstract base class for licensing responses.

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

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::LicensingErrorerrors
 Errors of this response.
 

Constructor & Destructor Documentation

◆ LicensingResponse()

tenduke::ee::licensing::LicensingResponse::LicensingResponse ( const std::map< std::string, tenduke::ee::licensing::LicensingError > &  errors)
inlineexplicit

Constructs new instance.

Parameters
errors-

Member Function Documentation

◆ failed()

virtual bool tenduke::ee::licensing::LicensingResponse::failed ( )
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.

Returns
-

Implemented in tenduke::ee::licensing::LicenseCheckoutResponse, and tenduke::ee::licensing::LicenseReleaseResponse.

◆ hasErrors()

bool tenduke::ee::licensing::LicensingResponse::hasErrors ( ) const
inline

Checks if there are any errors.

Returns
true if there are errors

Member Data Documentation

◆ 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.


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