fhq-server  v0.2.33
Documentation for fhq-server. FreeHackQuest is an open source platform for competitions of computer security.
model_notification.h
Go to the documentation of this file.
1 #ifndef MODEL_NOTIFICATION_H
2 #define MODEL_NOTIFICATION_H
3 
4 #include <string>
5 #include <json.hpp>
6 
8  public:
9  ModelNotification(const std::string &sType, const std::string &sSection, const std::string &sMessage);
10  std::string type();
11  std::string message();
12  nlohmann::json toJson();
13  private:
14  std::string TAG;
15  std::string m_sType;
16  std::string m_sSection;
17  std::string m_sMessage;
18 };
19 
20 #endif // MODEL_NOTIFICATION_H
std::string message()
Definition: model_notification.cpp:23
std::string m_sSection
Definition: model_notification.h:16
ModelNotification(const std::string &sType, const std::string &sSection, const std::string &sMessage)
Definition: model_notification.cpp:6
std::string TAG
Definition: model_notification.h:14
Definition: model_notification.h:7
nlohmann::json toJson()
Definition: model_notification.cpp:29
std::string m_sMessage
Definition: model_notification.h:17
std::string m_sType
Definition: model_notification.h:15
std::string type()
Definition: model_notification.cpp:17