1 #ifndef LS_PRODUCT_DETAILS_H
2 #define LS_PRODUCT_DETAILS_H
6 #pragma warning( push )
7 #pragma warning( disable : 4251 )
15 namespace LicenseSpring
22 using ptr_t = std::shared_ptr<ProductDetails>;
29 bool isTrialAllowed()
const;
33 bool isVMAllowed()
const;
37 uint32_t trialPeriod()
const;
41 uint32_t floatingLicenseTimeout()
const;
45 const std::string& productName()
const;
49 const std::string& productCode()
const;
57 const std::string& metadata()
const;
65 static ProductDetails fromJsonString(
const std::string& jsonString );
68 bool m_isTrialAllowed;
70 uint32_t m_trialPeriod;
71 uint32_t m_floatingTimeout;
72 std::string m_productName;
73 std::string m_productCode;
75 std::string m_metadata;
80 #pragma warning( pop )
83 #endif // LS_PRODUCT_DETAILS_H
LSAuthMethod
Product authorization method.
std::shared_ptr< ProductDetails > ptr_t
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
Class that encapsulates information about a product.