2025-01-03 02:03:59 +00:00
|
|
|
#ifndef CHATWEBAPI_H
|
|
|
|
#define CHATWEBAPI_H
|
2025-01-02 06:45:53 +00:00
|
|
|
|
2025-01-02 22:11:45 +00:00
|
|
|
#include "mongoose.h"
|
2025-01-02 06:45:53 +00:00
|
|
|
#include "json_fwd.hpp"
|
2025-01-02 22:11:45 +00:00
|
|
|
#include "GeneralUtils.h"
|
|
|
|
|
2025-01-02 06:45:53 +00:00
|
|
|
using json = nlohmann::json;
|
|
|
|
|
2025-01-03 02:42:50 +00:00
|
|
|
typedef struct mg_mgr mg_mgr;
|
|
|
|
|
2025-01-02 06:45:53 +00:00
|
|
|
class ChatWebAPI {
|
|
|
|
public:
|
2025-01-02 22:11:45 +00:00
|
|
|
ChatWebAPI();
|
2025-01-02 06:45:53 +00:00
|
|
|
~ChatWebAPI();
|
2025-01-02 22:11:45 +00:00
|
|
|
void ReceiveRequests();
|
2025-01-02 22:35:27 +00:00
|
|
|
void Listen();
|
2025-01-02 06:45:53 +00:00
|
|
|
private:
|
2025-01-03 02:42:50 +00:00
|
|
|
mg_mgr mgr;
|
2025-01-02 06:45:53 +00:00
|
|
|
};
|
|
|
|
|
2025-01-03 02:09:44 +00:00
|
|
|
#endif
|