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