diff options
author | Niklas Halle <niklas@niklashalle.net> | 2020-09-07 16:22:42 +0200 |
---|---|---|
committer | Niklas Halle <niklas@niklashalle.net> | 2020-09-07 16:22:42 +0200 |
commit | 37724b791e4fe4966106d20f7f17b553573ec59c (patch) | |
tree | d818444b51c48c0d095d4865cbcae918d9dedb27 /include | |
parent | c24fa23e21091a1afb89418c03692cca63e39123 (diff) | |
download | n_core-37724b791e4fe4966106d20f7f17b553573ec59c.tar.gz n_core-37724b791e4fe4966106d20f7f17b553573ec59c.zip |
started work
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); |