![]() |
LicenseSpring C++ SDK
7.27.0
Easily add Software Licensing to your application
|
Class that encapsulates information about a product. More...
#include <LicenseSpring/ProductDetails.h>
Public Types | |
| using | ptr_t = std::shared_ptr< ProductDetails > |
Public Member Functions | |
| ProductDetails () | |
| Default constructor, creates empty (invalid) Product details. More... | |
| bool | isTrialAllowed () const |
| Checks whether trial license is allowed for this product or not. More... | |
| bool | isVMAllowed () const |
| Checks if running the product on virtual machines is allowed. More... | |
| uint32_t | trialPeriod () const |
| Getter for trial period value in days. More... | |
| uint32_t | floatingLicenseTimeout () const |
| Getter for floating licenses in minutes. More... | |
| const std::string & | productName () const |
| Getter for product name. More... | |
| const std::string & | productCode () const |
| Getter for product code. More... | |
| LSAuthMethod | authorizationMethod () const |
| Getter for product authorization method. More... | |
| const std::string & | metadata () const |
| Getter for product metadata. More... | |
| bool | isEqual (const ProductDetails &other) const |
| Compare this object to other. More... | |
Static Public Member Functions | |
| static ProductDetails | fromJsonString (const std::string &jsonString) |
| Helper method, creates ProductDetails object from JSON string. More... | |
Class that encapsulates information about a product.
Product information can be obtained through the backend using BaseManager::getProductDetails()
Definition at line 19 of file ProductDetails.h.
| using LicenseSpring::ProductDetails::ptr_t = std::shared_ptr<ProductDetails> |
Definition at line 22 of file ProductDetails.h.
| LicenseSpring::ProductDetails::ProductDetails | ( | ) |
Default constructor, creates empty (invalid) Product details.
| bool LicenseSpring::ProductDetails::isTrialAllowed | ( | ) | const |
Checks whether trial license is allowed for this product or not.
| bool LicenseSpring::ProductDetails::isVMAllowed | ( | ) | const |
Checks if running the product on virtual machines is allowed.
| uint32_t LicenseSpring::ProductDetails::trialPeriod | ( | ) | const |
Getter for trial period value in days.
| uint32_t LicenseSpring::ProductDetails::floatingLicenseTimeout | ( | ) | const |
Getter for floating licenses in minutes.
| const std::string& LicenseSpring::ProductDetails::productName | ( | ) | const |
Getter for product name.
| const std::string& LicenseSpring::ProductDetails::productCode | ( | ) | const |
Getter for product code.
| LSAuthMethod LicenseSpring::ProductDetails::authorizationMethod | ( | ) | const |
Getter for product authorization method.
| const std::string& LicenseSpring::ProductDetails::metadata | ( | ) | const |
Getter for product metadata.
| bool LicenseSpring::ProductDetails::isEqual | ( | const ProductDetails & | other | ) | const |
Compare this object to other.
|
static |
Helper method, creates ProductDetails object from JSON string.