JSON file in mbed.

Dependencies:   MbedJSONValue SDFileSystem mbed

Fork of City_Game_JSON by Alex Vancoillie

Revision:
2:e6a095fc2274
Child:
5:eedf89829452
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mission.h	Wed Mar 29 07:01:05 2017 +0000
@@ -0,0 +1,41 @@
+#pragma once
+#include <iostream>
+#include "MbedJSONValue.h"
+
+namespace VivesCityGame
+{
+    class Mission
+    {
+        // declarations
+        private:
+            std::string type;
+            int id;
+            std::string message;
+            std::string hint;
+            bool deadline;
+            int deadlineTime;
+            double latitude;
+            double longitude;
+            int radius;
+
+        // getters
+        public:
+            std::string get_type();
+            int get_id();
+            std::string get_message();
+            std::string get_hint();
+            bool get_deadline();
+            int get_deadlineTime();
+            double get_latitude();
+            double get_longitude();
+            int get_radius();
+
+        // method from_json
+        public:
+            void from_json(MbedJSONValue& json);
+
+        // method to_string
+        public:
+            std::string to_string();
+    };
+};