10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
LicensingResponse.h
1#ifndef TENDUKE_EE_LICENSING_LICENSINGRESPONSE_H
2#define TENDUKE_EE_LICENSING_LICENSINGRESPONSE_H
3
4#include "./LicensingError.h"
5
6#include <map>
7#include <string>
8
9namespace tenduke { namespace ee { namespace licensing {
10
11
17{
18public:
23 explicit LicensingResponse(const std::map<std::string, tenduke::ee::licensing::LicensingError> &errors)
24 : errors(errors)
25 {}
26
27 virtual ~LicensingResponse() = default;
28
36 virtual bool failed() = 0;
37
42 bool hasErrors() const
43 {
44 return !errors.empty();
45 }
46
47public:
50 const std::map<std::string, tenduke::ee::licensing::LicensingError> errors;
51};
52
53
54}}}
55
56#endif //TENDUKE_EE_LICENSING_LICENSINGRESPONSE_H
Response from tenduke::ee::licensing::LicensingRequest.
Definition LicensingResponse.h:17
LicensingResponse(const std::map< std::string, tenduke::ee::licensing::LicensingError > &errors)
Constructs new instance.
Definition LicensingResponse.h:23
virtual bool failed()=0
Checks if request failed.
const std::map< std::string, tenduke::ee::licensing::LicensingError > errors
Errors of this response.
Definition LicensingResponse.h:50
bool hasErrors() const
Checks if there are any errors.
Definition LicensingResponse.h:42
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4