1 #ifndef LS_PRODUCT_DETAILS_H 2 #define LS_PRODUCT_DETAILS_H 7 #pragma warning(disable : 4251) 25 using ptr_t = std::shared_ptr<ProductDetails>;
32 bool isTrialAllowed()
const;
36 bool isVMAllowed()
const;
40 uint32_t trialPeriod()
const;
44 uint32_t floatingLicenseTimeout()
const;
48 const std::string &productName()
const;
52 const std::string &productCode()
const;
61 const std::string &metadata()
const;
65 const std::string &latestVersion()
const;
73 std::vector<CustomField> customFields()
const;
81 static ProductDetails fromJsonString(
const std::string &jsonString);
84 bool m_isTrialAllowed;
86 uint32_t m_trialPeriod;
87 uint32_t m_floatingTimeout;
88 std::string m_productName;
89 std::string m_productCode;
91 std::string m_metadata;
92 std::string m_latestVersion;
93 std::vector<CustomField> m_customFields;
101 #endif // LS_PRODUCT_DETAILS_H
LSAuthMethod
Product authorization method.
std::shared_ptr< ProductDetails > ptr_t
std::shared_ptr< InstallationFile > ptr_t
Class that encapsulates information about a product.