Line data Source code
1 : #pragma once
2 :
3 : #include <demo/api/get_hashed.hpp>
4 : #include <wfc/json.hpp>
5 :
6 : namespace demo{
7 :
8 : namespace request
9 : {
10 : struct get_hashed_json
11 : {
12 0 : JSON_NAME(key)
13 :
14 : typedef wfc::json::object<
15 : get_hashed,
16 : wfc::json::member_list<
17 : wfc::json::member<n_key, get_hashed, std::string, &get_hashed::key>
18 : >
19 : > type;
20 :
21 : typedef type::target target;
22 : typedef type::serializer serializer;
23 : };
24 : }
25 :
26 : namespace response
27 : {
28 : struct get_hashed_json
29 : {
30 0 : JSON_NAME(value)
31 0 : JSON_NAME(status)
32 :
33 : typedef wfc::json::object<
34 : get_hashed,
35 : wfc::json::member_list<
36 : wfc::json::member<n_status, get_hashed, bool, &get_hashed::status >,
37 : wfc::json::member<n_value, get_hashed, size_t, &get_hashed::value >
38 : >
39 : > type;
40 : typedef type::target target;
41 : typedef type::serializer serializer;
42 : };
43 : }
44 :
45 : }
|