Cryptolens Client API for C++
ResponseParser_ArduinoJson5.hpp
1 #pragma once
2 
3 #include "imports/std/optional"
4 
5 #include <utility>
6 
7 #include "basic_Error.hpp"
8 #include "LicenseKeyInformation.hpp"
9 #include "RawLicenseKey.hpp"
10 
11 namespace cryptolens_io {
12 
13 namespace v20190401 {
14 
16 /*
17  * Note the API of this class is not considered stable. Please contact us if you would like to create
18  * a custom ResponseParser.
19  */
20 public:
21 #ifndef CRYPTOLENS_20190701_ALLOW_IMPLICIT_CONSTRUCTORS
22  explicit
23 #endif
25 
26  optional<LicenseKeyInformation> make_license_key_information(basic_Error & e, RawLicenseKey const& raw_license_key) const;
27  optional<LicenseKeyInformation> make_license_key_information(basic_Error & e, optional<RawLicenseKey> const& raw_license_key) const;
28  optional<LicenseKeyInformation> make_license_key_information_unsafe(basic_Error & e, std::string const& license_key) const;
29 
30  optional<std::pair<std::string, std::string>> parse_activate_response(basic_Error & e, std::string const& server_response) const;
31  std::string parse_create_trial_key_response(basic_Error & e, std::string const& server_response) const;
32  std::string parse_last_message_response(basic_Error & e, std::string const& server_response) const;
33 };
34 
35 } // namespace latest
36 
37 namespace latest {
38 
40 
41 } // namespace latest
42 
43 } // namespace cryptolens_io
Definition: ActivateError.hpp:5
Definition: RawLicenseKey.hpp:24
Definition: basic_Error.hpp:90
Definition: ResponseParser_ArduinoJson5.hpp:15