fhq-server  v0.2.33
Documentation for fhq-server. FreeHackQuest is an open source platform for competitions of computer security.
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
EmployNotify Class Reference

#include <employ_notify.h>

Inheritance diagram for EmployNotify:
Inheritance graph
[legend]
Collaboration diagram for EmployNotify:
Collaboration graph
[legend]

Public Member Functions

 EmployNotify ()
 
virtual bool init ()
 
virtual bool deinit ()
 
void sendNotification (ModelNotification &modelNotification)
 
void notifyWarning (const std::string &sSection, const std::string &sMessage)
 
void notifyDanger (const std::string &sSection, const std::string &sMessage)
 
void notifyInfo (const std::string &sSection, const std::string &sMessage)
 
void notifyInfo (const std::string &sSection, const std::string &sMessage, const nlohmann::json &jsonMeta)
 
void notifySuccess (const std::string &sSection, const std::string &sMessage)
 
- Public Member Functions inherited from WsjcppEmployBase
 WsjcppEmployBase (const std::string &sName, const std::vector< std::string > &vLoadAfter)
 
virtual ~WsjcppEmployBase ()
 
const std::vector< std::string > & loadAfter ()
 

Static Public Member Functions

static std::string name ()
 

Static Public Attributes

static std::string GAMES = "games"
 
static std::string QUESTS = "quests"
 
static std::string USERS = "users"
 
static std::string SCOREBOARD = "scoreboard"
 
static std::string LEAKS = "leaks"
 

Private Member Functions

void sendNotification (const std::string &sType, const std::string &sSection, const std::string &sMessage)
 
void sendNotification (const std::string &sType, const std::string &sSection, const std::string &sMessage, const nlohmann::json &jsonMeta)
 

Private Attributes

std::string TAG
 

Constructor & Destructor Documentation

◆ EmployNotify()

EmployNotify::EmployNotify ( )

Member Function Documentation

◆ deinit()

bool EmployNotify::deinit ( )
virtual

Implements WsjcppEmployBase.

◆ init()

bool EmployNotify::init ( )
virtual

Implements WsjcppEmployBase.

◆ name()

static std::string EmployNotify::name ( )
inlinestatic

◆ notifyDanger()

void EmployNotify::notifyDanger ( const std::string &  sSection,
const std::string &  sMessage 
)

◆ notifyInfo() [1/2]

void EmployNotify::notifyInfo ( const std::string &  sSection,
const std::string &  sMessage 
)

◆ notifyInfo() [2/2]

void EmployNotify::notifyInfo ( const std::string &  sSection,
const std::string &  sMessage,
const nlohmann::json &  jsonMeta 
)

◆ notifySuccess()

void EmployNotify::notifySuccess ( const std::string &  sSection,
const std::string &  sMessage 
)

◆ notifyWarning()

void EmployNotify::notifyWarning ( const std::string &  sSection,
const std::string &  sMessage 
)

◆ sendNotification() [1/3]

void EmployNotify::sendNotification ( ModelNotification modelNotification)

◆ sendNotification() [2/3]

void EmployNotify::sendNotification ( const std::string &  sType,
const std::string &  sSection,
const std::string &  sMessage 
)
private

◆ sendNotification() [3/3]

void EmployNotify::sendNotification ( const std::string &  sType,
const std::string &  sSection,
const std::string &  sMessage,
const nlohmann::json &  jsonMeta 
)
private

Member Data Documentation

◆ GAMES

std::string EmployNotify::GAMES = "games"
static

◆ LEAKS

std::string EmployNotify::LEAKS = "leaks"
static

◆ QUESTS

std::string EmployNotify::QUESTS = "quests"
static

◆ SCOREBOARD

std::string EmployNotify::SCOREBOARD = "scoreboard"
static

◆ TAG

std::string EmployNotify::TAG
private

◆ USERS

std::string EmployNotify::USERS = "users"
static

The documentation for this class was generated from the following files: