summaryrefslogtreecommitdiffstats
path: root/libnavi/include/JsonRequestGenerator.h
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-08-30 11:40:23 -0400
committerScott Murray <scott.murray@konsulko.com>2019-09-05 00:18:27 +0000
commitda9d177514fe438edd8262226cdc770df6c9eb82 (patch)
treee33d2af8d2e129b372caf34afac37366b641553a /libnavi/include/JsonRequestGenerator.h
parentdd61aa309b3a082488c9d3c383c1601fd3efbc2a (diff)
Initial check in
Initial check in of contents of the original repository: git://github.com/AGLExport/agl-service-navigation as of commit 1f1ffc92fcc882aa5e885badbc91a3384f5d77b1. Bug-AGL: SPEC-2787 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I02d008ee73cdfd88f1e7587ee57101187b9c4d6d (cherry picked from commit f14ecdd52975ae365af5ed32648bf55dddacb8d9)
Diffstat (limited to 'libnavi/include/JsonRequestGenerator.h')
-rw-r--r--libnavi/include/JsonRequestGenerator.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/libnavi/include/JsonRequestGenerator.h b/libnavi/include/JsonRequestGenerator.h
new file mode 100644
index 0000000..7cd6979
--- /dev/null
+++ b/libnavi/include/JsonRequestGenerator.h
@@ -0,0 +1,29 @@
+// Copyright 2017 AW SOFTWARE CO.,LTD
+// Copyright 2017 AISIN AW CO.,LTD
+
+#pragma once
+
+#include <stdint.h>
+#include <string>
+#include <vector>
+
+#include "libnavicore.hpp"
+
+/**
+* @brief Class for generating Json request
+*/
+class JsonRequestGenerator
+{
+public:
+ static std::string CreateRequestGetPosition(const std::vector< int32_t >& valuesToReturn);
+ static std::string CreateRequestGetAllRoutes();
+ static std::string CreateRequestCreateRoute(const uint32_t* sessionHandle);
+ static std::string CreateRequestPauseSimulation(const uint32_t* sessionHandle);
+ static std::string CreateRequestSetSimulationMode(const uint32_t* sessionHandle, const bool* activate);
+ static std::string CreateRequestCancelRouteCalculation(const uint32_t* sessionHandle, const uint32_t* routeHandle);
+ static std::string CreateRequestSetWaypoints(const uint32_t* sessionHandle, const uint32_t* routeHandle,
+ const bool* startFromCurrentPosition, const std::vector<naviapi::Waypoint>* waypointsList);
+ static std::string CreateRequestCalculateroute(const uint32_t* sessionHandle, const uint32_t* routeHandle);
+ static std::string CreateRequestGetAllSessions();
+};
+