aboutsummaryrefslogtreecommitdiffstats
path: root/libnavi/include/JsonResponseAnalyzer.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-08-30 11:42:40 -0400
commitf14ecdd52975ae365af5ed32648bf55dddacb8d9 (patch)
treee33d2af8d2e129b372caf34afac37366b641553a /libnavi/include/JsonResponseAnalyzer.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
Diffstat (limited to 'libnavi/include/JsonResponseAnalyzer.h')
-rw-r--r--libnavi/include/JsonResponseAnalyzer.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/libnavi/include/JsonResponseAnalyzer.h b/libnavi/include/JsonResponseAnalyzer.h
new file mode 100644
index 0000000..50b2cd2
--- /dev/null
+++ b/libnavi/include/JsonResponseAnalyzer.h
@@ -0,0 +1,25 @@
+// Copyright 2017 AW SOFTWARE CO.,LTD
+// Copyright 2017 AISIN AW CO.,LTD
+
+#pragma once
+
+#include <json-c/json.h>
+#include <stdint.h>
+#include <string>
+#include <vector>
+#include <map>
+
+#include "libnavicore.hpp"
+
+/**
+* @brief JSON response analysis class
+*/
+class JsonResponseAnalyzer
+{
+public:
+ static std::map< int32_t, naviapi::variant > AnalyzeResponseGetPosition( std::string& res_json );
+ static std::vector< uint32_t > AnalyzeResponseGetAllRoutes( std::string& res_json );
+ static uint32_t AnalyzeResponseCreateRoute( std::string& res_json );
+ static std::map<uint32_t, std::string> AnalyzeResponseGetAllSessions( std::string& res_json );
+};
+