Line data Source code
1 : #pragma once
2 :
3 : #include <prefixdb/api/continue_background.hpp>
4 : #include <prefixdb/api/common_status_json.hpp>
5 : #include <wfc/json.hpp>
6 :
7 : namespace wamba { namespace prefixdb {
8 :
9 : namespace request
10 : {
11 : struct continue_background_json
12 : {
13 0 : JSON_NAME(prefixes)
14 : JSON_NAME(background_id)
15 0 : JSON_NAME(force)
16 :
17 : typedef wfc::json::object<
18 : continue_background,
19 : wfc::json::member_list<
20 : wfc::json::member<n_prefixes, continue_background, continue_background::prefix_list, &continue_background::prefixes, wfc::json::vector_of_strings<50> >,
21 : wfc::json::member<n_force, continue_background, bool, &continue_background::force >
22 : >
23 : > type;
24 : typedef type::target target;
25 : typedef type::serializer serializer;
26 : typedef type::member_list member_list;
27 : };
28 : }
29 :
30 : namespace response
31 : {
32 : struct continue_background_json
33 : {
34 0 : JSON_NAME(status)
35 :
36 : typedef wfc::json::object<
37 : continue_background,
38 : wfc::json::member_list<
39 : wfc::json::member<n_status, continue_background, common_status, &continue_background::status, common_status_json>
40 : >
41 : > type;
42 : typedef type::target target;
43 : typedef type::serializer serializer;
44 : typedef type::member_list member_list;
45 : };
46 : }
47 :
48 : }}
|