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