10Duke Scale C++ Client
Loading...
Searching...
No Matches
LicenseConsumptionClientBinding.h
1#ifndef TENDUKE_SE_LICENSING_LICENSECONSUMPTIONCLIENTBINDING_H
2#define TENDUKE_SE_LICENSING_LICENSECONSUMPTIONCLIENTBINDING_H
3
4#include "../License.h"
5#include "../LicenseConsumer.h"
6
7#include <cstdint>
8#include <string>
9#include <utility>
10
11namespace tenduke { namespace se { namespace licensing {
12
18{
19public:
53 std::string cliApiKey,
54 std::string cliCountry,
55 std::string cliHostName,
56 std::string cliHwArch,
57 std::string cliHwId,
58 std::string cliHwLabel,
59 std::string cliInstallationId,
60 std::string cliLang,
61 std::string cliNetworkIpAddress,
62 std::string cliOsUserName,
63 std::string cliOs,
64 std::string cliProcessId,
65 std::string cliVersion,
66 std::string consumeDurationEndedAt,
67 std::string consumeDurationGrantedAt,
68 std::string created,
69 const std::int64_t id,
70 std::string lastHeartbeat,
71 std::string leaseId,
72 const std::shared_ptr<::tenduke::se::licensing::License> &license,
73 const std::shared_ptr<::tenduke::se::licensing::LicenseConsumer> &licenseConsumer,
74 const bool locked,
75 std::string modified,
76 const std::int64_t qtyPreAlloc,
77 std::string requestIpAddress,
78 const bool triggeredSeatUse,
79 std::string validFrom,
80 std::string validUntil,
81 const std::int64_t verifiedQty
82 ) : cliApiKey(std::move(cliApiKey))
83 , cliCountry(std::move(cliCountry))
84 , cliHostName(std::move(cliHostName))
85 , cliHwArch(std::move(cliHwArch))
86 , cliHwId(std::move(cliHwId))
87 , cliHwLabel(std::move(cliHwLabel))
89 , cliLang(std::move(cliLang))
91 , cliOSUserName(std::move(cliOsUserName))
92 , cliOs(std::move(cliOs))
93 , cliProcessId(std::move(cliProcessId))
94 , cliVersion(std::move(cliVersion))
97 , created(std::move(created))
98 , id(id)
99 , lastHeartbeat(std::move(lastHeartbeat))
100 , leaseId(std::move(leaseId))
103 , locked(locked)
104 , modified(std::move(modified))
108 , validFrom(std::move(validFrom))
109 , validUntil(std::move(validUntil))
111 {}
112
113public:
115 const std::string cliApiKey;
117 const std::string cliCountry;
119 const std::string cliHostName;
121 const std::string cliHwArch;
123 const std::string cliHwId;
125 const std::string cliHwLabel;
127 const std::string cliInstallationId;
129 const std::string cliLang;
131 const std::string cliNetworkIpAddress;
133 const std::string cliOSUserName;
135 const std::string cliOs;
137 const std::string cliProcessId;
139 const std::string cliVersion;
140
142 const std::string consumeDurationEndedAt;
144 const std::string consumeDurationGrantedAt;
146 const std::string created;
148 const std::int64_t id;
150 const std::string lastHeartbeat;
152 const std::string leaseId;
153
155 const std::shared_ptr<::tenduke::se::licensing::License> license;
157 const std::shared_ptr<::tenduke::se::licensing::LicenseConsumer> licenseConsumer;
158
160 const bool locked;
162 const std::string modified;
164 const std::int64_t qtyPreAlloc;
166 const std::string requestIpAddress;
167
171 const std::string validFrom;
173 const std::string validUntil;
175 const std::int64_t verifiedQty;
176};
177
178}}}
179
180#endif //TENDUKE_SE_LICENSING_LICENSECONSUMPTIONCLIENTBINDING_H
Licenses that are currently known to be associated with a license consuming user using a specific app...
Definition LicenseConsumptionClientBinding.h:18
const std::shared_ptr<::tenduke::se::licensing::LicenseConsumer > licenseConsumer
The license consumer.
Definition LicenseConsumptionClientBinding.h:157
const std::string cliCountry
Client country.
Definition LicenseConsumptionClientBinding.h:117
const std::string cliLang
Client language.
Definition LicenseConsumptionClientBinding.h:129
const std::string consumeDurationGrantedAt
Consume duration granted at.
Definition LicenseConsumptionClientBinding.h:144
const std::string cliApiKey
Client API key.
Definition LicenseConsumptionClientBinding.h:115
const bool locked
Locked?
Definition LicenseConsumptionClientBinding.h:160
const std::string leaseId
Lease id.
Definition LicenseConsumptionClientBinding.h:152
const std::string created
Creation timestamp.
Definition LicenseConsumptionClientBinding.h:146
const std::string cliOs
Client operating system.
Definition LicenseConsumptionClientBinding.h:135
const std::shared_ptr<::tenduke::se::licensing::License > license
The license.
Definition LicenseConsumptionClientBinding.h:155
const std::int64_t id
Id.
Definition LicenseConsumptionClientBinding.h:148
const std::string requestIpAddress
Request ip address.
Definition LicenseConsumptionClientBinding.h:166
const std::string cliHwId
Client hardware id.
Definition LicenseConsumptionClientBinding.h:123
const std::string cliVersion
Client version.
Definition LicenseConsumptionClientBinding.h:139
const std::string validUntil
Valid until.
Definition LicenseConsumptionClientBinding.h:173
const std::int64_t qtyPreAlloc
Pre-allocating a quantity amount applies to quantity types that pure deductible nature,...
Definition LicenseConsumptionClientBinding.h:164
const std::string validFrom
Valid from.
Definition LicenseConsumptionClientBinding.h:171
LicenseConsumptionClientBinding(std::string cliApiKey, std::string cliCountry, std::string cliHostName, std::string cliHwArch, std::string cliHwId, std::string cliHwLabel, std::string cliInstallationId, std::string cliLang, std::string cliNetworkIpAddress, std::string cliOsUserName, std::string cliOs, std::string cliProcessId, std::string cliVersion, std::string consumeDurationEndedAt, std::string consumeDurationGrantedAt, std::string created, const std::int64_t id, std::string lastHeartbeat, std::string leaseId, const std::shared_ptr<::tenduke::se::licensing::License > &license, const std::shared_ptr<::tenduke::se::licensing::LicenseConsumer > &licenseConsumer, const bool locked, std::string modified, const std::int64_t qtyPreAlloc, std::string requestIpAddress, const bool triggeredSeatUse, std::string validFrom, std::string validUntil, const std::int64_t verifiedQty)
Constructs new instance.
Definition LicenseConsumptionClientBinding.h:52
const std::string consumeDurationEndedAt
Consume duration ended at.
Definition LicenseConsumptionClientBinding.h:142
const std::string lastHeartbeat
Last heartbeat timestamp.
Definition LicenseConsumptionClientBinding.h:150
const bool triggeredSeatUse
Did this trigger seat use?
Definition LicenseConsumptionClientBinding.h:169
const std::string modified
Modification timestamp.
Definition LicenseConsumptionClientBinding.h:162
const std::string cliOSUserName
Client operating system user name.
Definition LicenseConsumptionClientBinding.h:133
const std::string cliHwArch
Client hardware architecture.
Definition LicenseConsumptionClientBinding.h:121
const std::string cliProcessId
Client process id.
Definition LicenseConsumptionClientBinding.h:137
const std::string cliNetworkIpAddress
Client network IP address.
Definition LicenseConsumptionClientBinding.h:131
const std::int64_t verifiedQty
Verified quantity is determined by the consuming client informing the licensing API of factual use.
Definition LicenseConsumptionClientBinding.h:175
const std::string cliHostName
Client host name.
Definition LicenseConsumptionClientBinding.h:119
const std::string cliHwLabel
Client hardware label.
Definition LicenseConsumptionClientBinding.h:125
const std::string cliInstallationId
Client installation id.
Definition LicenseConsumptionClientBinding.h:127
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7