10Duke Scale C++ Client
Loading...
Searching...
No Matches
LicenseConsumerLicensesStatus.h
1#ifndef TENDUKE_SE_LICENSING_LICENSECONSUMERLICENSESTATUS_H
2#define TENDUKE_SE_LICENSING_LICENSECONSUMERLICENSESTATUS_H
3
4#include "../License.h"
5
6#include <string>
7#include <vector>
8
9namespace tenduke { namespace se { namespace licensing {
10
15{
16public:
21 explicit LicenseConsumerLicensesStatus(const std::vector<::tenduke::se::licensing::License> &licenses)
23 {}
24
29 bool hasLicenses() const
30 {
31 return !licenses.empty();
32 }
33
34public:
36 const std::vector<::tenduke::se::licensing::License> licenses;
37};
38
39}}}
40
41#endif //TENDUKE_SE_LICENSING_LICENSECONSUMERLICENSESTATUS_H
Response from "describe license consumer licenses".
Definition LicenseConsumerLicensesStatus.h:15
LicenseConsumerLicensesStatus(const std::vector<::tenduke::se::licensing::License > &licenses)
Constructs new instance.
Definition LicenseConsumerLicensesStatus.h:21
const std::vector<::tenduke::se::licensing::License > licenses
Licenses that are accessible by the license consumer.
Definition LicenseConsumerLicensesStatus.h:36
bool hasLicenses() const
Checks if the response contains any licenses.
Definition LicenseConsumerLicensesStatus.h:29
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7