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:
31 std::string leaseId,
32 const bool treatAsIncrementalQty,
33 const std::int64_t usedQty,
34 std::string clientVersion = ""
35 ) : leaseId(std::move(leaseId))
38 , clientVersion(std::move(clientVersion))
39 {}
40
45 bool hasClientVersion() const
46 {
47 return !clientVersion.empty();
48 }
49
50public:
52 const std::string leaseId;
56 const std::int64_t usedQty;
58 const std::string clientVersion;
59};
60
61}}}
62
63#endif //TENDUKE_SE_LICENSING_LICENSEHEARTBEATARGUMENTS_H
LicenseHeartbeatArguments(std::string leaseId, const bool treatAsIncrementalQty, const std::int64_t usedQty, std::string clientVersion="")
Constructs new instance.
Definition LicenseHeartbeatArguments.h:30
bool hasClientVersion() const
Returns true if this argument has specified the client version.
Definition LicenseHeartbeatArguments.h:45
const std::int64_t usedQty
The amount used since initial license checkout / previous heartbeat.
Definition LicenseHeartbeatArguments.h:56
const bool treatAsIncrementalQty
Flag that tells if the usedQty value is absolute or should be treated as an increment.
Definition LicenseHeartbeatArguments.h:54
LicenseHeartbeatArguments(std::string leaseId, const bool treatAsIncrementalQty, const std::int64_t usedQty, std::string clientVersion="")
Constructs new instance.
Definition LicenseHeartbeatArguments.h:30
const std::string clientVersion
Client application version.
Definition LicenseHeartbeatArguments.h:58
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:52
Licensing operations for 10Duke Scale.
Definition LicenseConsumerClientBindingStatus.h:8
Classes, functions and globals of 10Duke Scale C++ Client.
Definition AbstractClientFactory.h:16
Root for classes, functions and globals of 10Duke C++ Client.
Definition AbstractClientFactory.h:16