10Duke Scale C++ Client
Loading...
Searching...
No Matches
LicenseHeartbeatArguments.h
1#ifndef TENDUKE_SE_LICENSING_LICENSEHEARTBEATARGUMENTS_H
2#define TENDUKE_SE_LICENSING_LICENSEHEARTBEATARGUMENTS_H
3
4#include <cstdint>
5#include <string>
6#include <utility>
7
8
9namespace tenduke { namespace se { namespace licensing {
10
15{
16public:
29 std::string leaseId,
30 const bool treatAsIncrementalQty,
31 const std::int64_t usedQty
32 ) : leaseId(std::move(leaseId))
35 {}
36
37public:
39 const std::string leaseId;
43 const std::int64_t usedQty;
44};
45
46}}}
47
48#endif //TENDUKE_SE_LICENSING_LICENSEHEARTBEATARGUMENTS_H
Describes single license lease to heartbeat.
Definition LicenseHeartbeatArguments.h:15
const std::int64_t usedQty
The amount used since initial license checkout / previous heartbeat.
Definition LicenseHeartbeatArguments.h:43
const bool treatAsIncrementalQty
Flag that tells if the usedQty value is absolute or should be treated as an increment.
Definition LicenseHeartbeatArguments.h:41
LicenseHeartbeatArguments(std::string leaseId, const bool treatAsIncrementalQty, const std::int64_t usedQty)
Constructs new instance.
Definition LicenseHeartbeatArguments.h:28
const std::string leaseId
Lease id value as it was returned in last heartbeat response or initial license checkout if no heartb...
Definition LicenseHeartbeatArguments.h:39
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7