10Duke Scale C++ Client
|
#include <AbstractLicenseRequest.h>
Abstract base class for license-related requests.
Public Member Functions | |
AbstractLicenseRequest (std::string licenseKey, bool metered, const std::shared_ptr< const ::tenduke::se::ClientProperties > &clientProperties, const std::shared_ptr< const ::tenduke::se::BackendConfiguration > &configuration, const std::shared_ptr< const ::tenduke::http::HTTPClient > &httpClient, const std::shared_ptr< const ::tenduke::http::HTTPRequestAuthenticator > &httpRequestAuthenticator, const std::shared_ptr< const ::tenduke::http::HTTPResponseToException > &throwException, const std::shared_ptr< const ::tenduke::json::JSONParser > &jsonParser) | |
Constructs new instance. | |
Static Public Attributes | |
static const std::string | NO_LICENSE_KEY |
Magic value to indicate that this is not a license key request. | |
static const bool | METERED = true |
Magic value to indicate that this is metered license request. | |
static const bool | NON_METERED = false |
Magic value to indicate that this is normal (not metered) license request. | |
Protected Member Functions | |
std::string | getLicenseKey () const |
Returns license key. | |
bool | hasLicenseKey () const |
Checks if this is license-key request. | |
bool | isMetered () const |
Checks if this metered-request. | |
Protected Attributes | |
const std::shared_ptr< const ::tenduke::se::ClientProperties > | clientProperties |
Client properties. | |
const std::shared_ptr< const ::tenduke::se::BackendConfiguration > | configuration |
Config. | |
const std::shared_ptr< const ::tenduke::http::HTTPClient > | http |
HTTP-client. | |
const std::shared_ptr< const ::tenduke::http::HTTPRequestAuthenticator > | httpRequestAuthenticator |
HTTP-request authenticator. | |
const std::shared_ptr< const ::tenduke::http::HTTPResponseToException > | throwException |
Throw-exception. | |
const std::shared_ptr< const ::tenduke::json::JSONParser > | parseJSON |
Parses JSON. | |
tenduke::se::licensing::rest::AbstractLicenseRequest::AbstractLicenseRequest | ( | std::string | licenseKey, |
bool | metered, | ||
const std::shared_ptr< const ::tenduke::se::ClientProperties > & | clientProperties, | ||
const std::shared_ptr< const ::tenduke::se::BackendConfiguration > & | configuration, | ||
const std::shared_ptr< const ::tenduke::http::HTTPClient > & | httpClient, | ||
const std::shared_ptr< const ::tenduke::http::HTTPRequestAuthenticator > & | httpRequestAuthenticator, | ||
const std::shared_ptr< const ::tenduke::http::HTTPResponseToException > & | throwException, | ||
const std::shared_ptr< const ::tenduke::json::JSONParser > & | jsonParser | ||
) |
Constructs new instance.
licenseKey | - |
metered | - |
clientProperties | - |
configuration | - |
httpClient | - |
httpRequestAuthenticator | - |
throwException | - |
jsonParser | - |
|
protected |
Returns license key.
nullptr
if this is regular (non-license key) operation.
|
protected |
Checks if this is license-key request.