44e20d0729470ff85d89ae35e77e5b713fba2aa6
[apps/agl-service-navigation.git] / include / binder_reply.h
1 // Copyright 2017 AW SOFTWARE CO.,LTD
2 // Copyright 2017 AISIN AW CO.,LTD
3
4 #pragma once
5
6 #include <stdio.h>
7 #include <stdbool.h>
8 #include <string>
9 #include <map>
10 #include <vector>
11 #include <json-c/json.h>
12
13 /**
14  *  @brief Response to return to Binder client.
15  */
16 typedef struct APIResponse_
17 {
18         bool isSuccess;
19         std::string errMessage;
20         json_object* json_data;
21 }APIResponse;
22
23 /**
24  *  @brief Convert information acquired by Genevi API to JSON format.
25  */
26 class BinderReply
27 {
28 public:
29         APIResponse ReplyNavicoreGetPosition( std::map<int32_t, double>& posList );
30         APIResponse ReplyNavicoreGetAllRoutes( std::vector< uint32_t > &allRoutes );
31         APIResponse ReplyNavicoreCreateRoute( uint32_t route );
32         APIResponse ReplyNavicoreGetAllSessions( std::map<uint32_t, std::string> &allSessions );
33 };
34