diff options
| author | Rutger Broekhoff | 2026-08-28 22:22:24 +0200 |
|---|---|---|
| committer | Rutger Broekhoff | 2026-08-28 22:22:24 +0200 |
| commit | b0d7600970d2fdb1eb6fff813c7336ea34d4e228 (patch) | |
| tree | 051d6f80c7e332f4b31027025ae7c60c7ac70742 /server/src/rwgps.cppm | |
| parent | 70643a9e4821bd11c3f363f1708fe420965467d1 (diff) | |
| download | routemon-b0d7600970d2fdb1eb6fff813c7336ea34d4e228.tar.gz routemon-b0d7600970d2fdb1eb6fff813c7336ea34d4e228.zip | |
Indent tweaks
Diffstat (limited to 'server/src/rwgps.cppm')
| -rw-r--r-- | server/src/rwgps.cppm | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/server/src/rwgps.cppm b/server/src/rwgps.cppm index f2f1681..3b01e6c 100644 --- a/server/src/rwgps.cppm +++ b/server/src/rwgps.cppm | |||
| @@ -46,7 +46,7 @@ struct get_routes_response | |||
| 46 | }; | 46 | }; |
| 47 | 47 | ||
| 48 | auto tag_invoke(json::value_to_tag<route_summary> const&, json::value const& jv) | 48 | auto tag_invoke(json::value_to_tag<route_summary> const&, json::value const& jv) |
| 49 | -> route_summary | 49 | -> route_summary |
| 50 | { | 50 | { |
| 51 | return { | 51 | return { |
| 52 | .id = json::value_to<std::int64_t>(jv.at("id")), | 52 | .id = json::value_to<std::int64_t>(jv.at("id")), |
| @@ -58,20 +58,20 @@ auto tag_invoke(json::value_to_tag<route_summary> const&, json::value const& jv) | |||
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | auto tag_invoke(json::value_to_tag<pagination> const&, json::value const& jv) | 60 | auto tag_invoke(json::value_to_tag<pagination> const&, json::value const& jv) |
| 61 | -> pagination | 61 | -> pagination |
| 62 | { | 62 | { |
| 63 | return { | 63 | return { |
| 64 | .record_count = json::value_to<std::size_t>(jv.at("record_count")), | 64 | .record_count = json::value_to<std::size_t>(jv.at("record_count")), |
| 65 | .page_count = json::value_to<std::size_t>(jv.at("page_count")), | 65 | .page_count = json::value_to<std::size_t>(jv.at("page_count")), |
| 66 | .page_size = json::value_to<std::size_t>(jv.at("page_size")), | 66 | .page_size = json::value_to<std::size_t>(jv.at("page_size")), |
| 67 | .next_page_url = | 67 | .next_page_url = |
| 68 | json::value_to<std::optional<std::string>>(jv.at("next_page_url")), | 68 | json::value_to<std::optional<std::string>>(jv.at("next_page_url")), |
| 69 | }; | 69 | }; |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | auto tag_invoke( | 72 | auto tag_invoke( |
| 73 | json::value_to_tag<get_routes_meta> const&, json::value const& jv) | 73 | json::value_to_tag<get_routes_meta> const&, json::value const& jv) |
| 74 | -> get_routes_meta | 74 | -> get_routes_meta |
| 75 | { | 75 | { |
| 76 | return { | 76 | return { |
| 77 | .pagination = json::value_to<pagination>(jv.at("pagination")), | 77 | .pagination = json::value_to<pagination>(jv.at("pagination")), |
| @@ -79,8 +79,8 @@ auto tag_invoke( | |||
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | auto tag_invoke( | 81 | auto tag_invoke( |
| 82 | json::value_to_tag<get_routes_response> const&, json::value const& jv) | 82 | json::value_to_tag<get_routes_response> const&, json::value const& jv) |
| 83 | -> get_routes_response | 83 | -> get_routes_response |
| 84 | { | 84 | { |
| 85 | return { | 85 | return { |
| 86 | .routes = json::value_to<std::vector<route_summary>>(jv.at("routes")), | 86 | .routes = json::value_to<std::vector<route_summary>>(jv.at("routes")), |
| @@ -89,7 +89,7 @@ auto tag_invoke( | |||
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | auto json_value_to_get_routes_response(json::value const& jv) | 91 | auto json_value_to_get_routes_response(json::value const& jv) |
| 92 | -> get_routes_response | 92 | -> get_routes_response |
| 93 | { | 93 | { |
| 94 | return json::value_to<get_routes_response>(jv); | 94 | return json::value_to<get_routes_response>(jv); |
| 95 | } | 95 | } |
| @@ -127,8 +127,8 @@ export class client | |||
| 127 | 127 | ||
| 128 | public: | 128 | public: |
| 129 | explicit client( | 129 | explicit client( |
| 130 | net::io_context& ioc, log::logger const& l, std::string api_key, | 130 | net::io_context& ioc, log::logger const& l, std::string api_key, |
| 131 | std::string auth_token) | 131 | std::string auth_token) |
| 132 | : l_{l.sub("rwgps-client")}, hc_{ioc}, api_key_{std::move(api_key)}, | 132 | : l_{l.sub("rwgps-client")}, hc_{ioc}, api_key_{std::move(api_key)}, |
| 133 | auth_token_{std::move(auth_token)} | 133 | auth_token_{std::move(auth_token)} |
| 134 | { | 134 | { |