blob: 813d11519aae8b1c429ae79db63b7079846cac01 (
plain) (
tree)
|
|
#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
};
|