10Duke Scale C++ Client
Loading...
Searching...
No Matches
LicenseReleaseResult.h
1#ifndef TENDUKE_SE_LICENSING_LICENSERELEASERESULT_H
2#define TENDUKE_SE_LICENSING_LICENSERELEASERESULT_H
3
4#include "../../License.h"
5
6#include <cstdint>
7#include <string>
8#include <utility>
9
10namespace tenduke { namespace se { namespace licensing {
11
16{
17public:
22 : finalUsedQty(-1)
23 , qtyDimension(::tenduke::se::licensing::License::QuantityDimension::NONE)
24 , released(false)
25 , remainingQty(-1)
26 {}
27
40 const std::int64_t finalUsedQty,
41 std::string licenseConsumerId,
42 std::string productName,
43 const ::tenduke::se::licensing::License::QuantityDimension qtyDimension,
44 const bool released,
45 std::string releasedLeaseId,
46 std::string releasedLicenseId,
47 const std::int64_t remainingQty
50 , productName(std::move(productName))
56 )
57 {}
58
59public:
61 std::string errorCode;
63 std::string errorDescription;
65 std::int64_t finalUsedQty;
67 std::string licenseConsumerId;
69 std::string productName;
71 enum ::tenduke::se::licensing::License::QuantityDimension qtyDimension;
75 std::string releasedLeaseId;
77 std::string releasedLicenseId;
79 std::int64_t remainingQty;
80};
81
82}}}
83
84#endif //TENDUKE_SE_LICENSING_LICENSERELEASERESULT_H
Describes result of release of single license lease.
Definition LicenseReleaseResult.h:16
enum::tenduke::se::licensing::License::QuantityDimension qtyDimension
Quantity dimension.
Definition LicenseReleaseResult.h:71
std::int64_t finalUsedQty
Final used quantity.
Definition LicenseReleaseResult.h:65
std::string releasedLeaseId
Released lease id.
Definition LicenseReleaseResult.h:75
std::string releasedLicenseId
Released license id.
Definition LicenseReleaseResult.h:77
std::string errorDescription
Error description.
Definition LicenseReleaseResult.h:63
LicenseReleaseResult(const std::int64_t finalUsedQty, std::string licenseConsumerId, std::string productName, const ::tenduke::se::licensing::License::QuantityDimension qtyDimension, const bool released, std::string releasedLeaseId, std::string releasedLicenseId, const std::int64_t remainingQty)
Constructs new instance.
Definition LicenseReleaseResult.h:39
std::int64_t remainingQty
Remaining quantity.
Definition LicenseReleaseResult.h:79
bool released
Was the lease released?
Definition LicenseReleaseResult.h:73
std::string licenseConsumerId
License consumer id.
Definition LicenseReleaseResult.h:67
std::string productName
Product name.
Definition LicenseReleaseResult.h:69
std::string errorCode
Error code.
Definition LicenseReleaseResult.h:61
LicenseReleaseResult()
No-arg constructs new instance with defaults.
Definition LicenseReleaseResult.h:21
10Duke Scale license.
Definition License.h:27
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7