diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/GetEssen.hpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/GetEssen.hpp b/include/GetEssen.hpp index ff75029..b53c028 100644 --- a/include/GetEssen.hpp +++ b/include/GetEssen.hpp @@ -1,5 +1,6 @@ #pragma once +#include <queue> #include <iostream> #include <sys/stat.h> @@ -19,7 +20,7 @@ namespace Handler { struct MensaEssen { int ID{191}; - string Message{"nothing got back! There was an error!!"}; + std::queue<crow::json::wvalue> Message; ptime Datum; ptime LastModified; }; @@ -35,9 +36,13 @@ namespace Handler { MensaEssen db_get_mensa_message(const int &mensaID, const ptime &mensaDatum); - string getEssen(const int mensa_ID, const int offset); + std::vector<crow::json::wvalue> getEssenOnline(int mensa_ID, boost::posix_time::ptime datumEssen); - string read_mensa_message_from_file(const int &mensa_id_file); + std::vector<crow::json::wvalue> getEssen(int mensa_ID, int offset); + + std::vector<crow::json::wvalue> parseEssen(MensaEssen Essen); + + std::vector<crow::json::wvalue> read_mensa_message_from_file(const int &mensa_id_file); } json mensaHandler(std::string const &arguments, std::string const &session, void *payload); |