aboutsummaryrefslogtreecommitdiffstats
path: root/src/Utilities/GetEssen.hpp
blob: 813d11519aae8b1c429ae79db63b7079846cac01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once

#include "sqdb.hpp"
#include "Utilities/Utilities.hpp"
#include "Utilities/Logger.hpp"
//#include <tgbot/tgbot.h>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/date_time/date_formatting.hpp>
#include <curl/curl.h>
#include <iostream>
#include <sys/stat.h>
#include <iostream>
#include <string>
#include <mongoose/JsonResponse.h>
#include <mongoose/Server.h>

using namespace std;
using namespace boost::posix_time;

void returnEssen(Mongoose::Request &request, Mongoose::JsonResponse &response);

string getEssen(int mensa_ID, int offset);

string read_mensa_message_from_file(const int& mensa_id_file);

struct Mensa_Essen{
    int ID{191};
    string Message{"nothing got back! There was an error!!"};
    boost::posix_time::ptime Datum;
    boost::posix_time::ptime LastModified;
};
enum mensa {
    Adlershof = 191, Nord = 147, Sued = 367
};