10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
LicenseTokens.h
1#ifndef TENDUKE_EE_LICENSING_LICENSETOKENUTILS_H
2#define TENDUKE_EE_LICENSING_LICENSETOKENUTILS_H
3
4#include "./Lease.h"
5#include "crypto/PublicKey.h"
6
7#include <map>
8#include <string>
9#include <vector>
10
11
12namespace tenduke { namespace ee { namespace licensing {
13
18{
19public:
20 virtual ~LicenseTokens() = default;
21
39 virtual std::string serialize(const std::vector<tenduke::ee::licensing::Lease> &leases) const = 0;
40
46 virtual std::string serialize(const std::map<std::string, tenduke::ee::licensing::Lease> &leases) const = 0;
47
53 virtual std::vector<tenduke::ee::licensing::Lease> deserialize(const std::string &serializedLeases) const = 0;
54};
55
56
57}}}
58
59#endif //TENDUKE_EE_LICENSING_LICENSETOKENUTILS_H
Service for managing licenses tokens.
Definition LicenseTokens.h:18
virtual std::string serialize(const std::vector< tenduke::ee::licensing::Lease > &leases) const =0
Serializes given leases to a JSON-string.
virtual std::string serialize(const std::map< std::string, tenduke::ee::licensing::Lease > &leases) const =0
Serializes given leases in map to a JSON-string.
virtual std::vector< tenduke::ee::licensing::Lease > deserialize(const std::string &serializedLeases) const =0
De-serializes given JSON string into leases.
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4