Line data Source code
1 : #pragma once
2 :
3 : #include <demo/api/multiget_hashed.hpp>
4 : #include <wfc/json.hpp>
5 :
6 : namespace demo{
7 :
8 : namespace request
9 : {
10 : struct multiget_hashed_json
11 : {
12 0 : JSON_NAME(keys)
13 :
14 : typedef wfc::json::object<
15 : multiget_hashed,
16 : wfc::json::member_list<
17 : wfc::json::member<
18 : n_keys,
19 : multiget_hashed,
20 : std::set<std::string>,
21 : &multiget_hashed::keys,
22 : wfc::json::array< std::set< wfc::json::value< std::string> > >
23 : >
24 : >
25 : > type;
26 :
27 : typedef type::target target;
28 : typedef type::serializer serializer;
29 : };
30 : }
31 :
32 : namespace response
33 : {
34 : struct multiget_hashed_json
35 : {
36 0 : JSON_NAME(values)
37 :
38 : typedef wfc::json::object<
39 : multiget_hashed,
40 : wfc::json::member_list<
41 : wfc::json::member<
42 : n_values,
43 : multiget_hashed,
44 : multiget_hashed::map_type,
45 : &multiget_hashed::values,
46 : wfc::json::dict_map<
47 : wfc::json::pointer<
48 : std::shared_ptr<size_t>,
49 : wfc::json::value<size_t>
50 : >
51 : >
52 : >
53 : >
54 : > type;
55 : typedef type::target target;
56 : typedef type::serializer serializer;
57 : };
58 : }
59 :
60 : }
|