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

#include <model_leak.h>

Public Member Functions

 ModelLeak ()
 
int localId ()
 
void setLocalId (int nId)
 
const std::string & uuid ()
 
void setUuid (std::string sUuid)
 
int gameId ()
 
void setGameId (int nGameId)
 
const std::string & gameUuid ()
 
void setGameUuid (std::string nGameUuid)
 
const std::string & name ()
 
void setName (std::string sName)
 
const std::string & content ()
 
void setContent (std::string sContent)
 
int score ()
 
void setScore (int nScore)
 
const std::string & created ()
 
void setCreated (std::string sCreated)
 
const std::string & updated ()
 
void setUpdated (std::string sUpdated)
 
int sold ()
 
void setSold (int nSold)
 
nlohmann::json toJson ()
 
void fillFrom (nlohmann::json &jsonLeak)
 

Private Attributes

std::string TAG
 
int m_nLocalId
 
int m_nGameId
 
std::string m_sUuid
 
std::string m_sGameUuid
 
std::string m_sName
 
std::string m_sContent
 
int m_nScore
 
std::string m_sCreated
 
std::string m_sUpdated
 
int m_nSold
 

Constructor & Destructor Documentation

◆ ModelLeak()

ModelLeak::ModelLeak ( )

Member Function Documentation

◆ content()

const std::string & ModelLeak::content ( )

◆ created()

const std::string & ModelLeak::created ( )

◆ fillFrom()

void ModelLeak::fillFrom ( nlohmann::json &  jsonLeak)

◆ gameId()

int ModelLeak::gameId ( )

◆ gameUuid()

const std::string & ModelLeak::gameUuid ( )

◆ localId()

int ModelLeak::localId ( )

◆ name()

const std::string & ModelLeak::name ( )

◆ score()

int ModelLeak::score ( )

◆ setContent()

void ModelLeak::setContent ( std::string  sContent)

◆ setCreated()

void ModelLeak::setCreated ( std::string  sCreated)

◆ setGameId()

void ModelLeak::setGameId ( int  nGameId)

◆ setGameUuid()

void ModelLeak::setGameUuid ( std::string  nGameUuid)

◆ setLocalId()

void ModelLeak::setLocalId ( int  nId)

◆ setName()

void ModelLeak::setName ( std::string  sName)

◆ setScore()

void ModelLeak::setScore ( int  nScore)

◆ setSold()

void ModelLeak::setSold ( int  nSold)

◆ setUpdated()

void ModelLeak::setUpdated ( std::string  sUpdated)

◆ setUuid()

void ModelLeak::setUuid ( std::string  sUuid)

◆ sold()

int ModelLeak::sold ( )

◆ toJson()

nlohmann::json ModelLeak::toJson ( )

◆ updated()

const std::string & ModelLeak::updated ( )

◆ uuid()

const std::string & ModelLeak::uuid ( )

Member Data Documentation

◆ m_nGameId

int ModelLeak::m_nGameId
private

◆ m_nLocalId

int ModelLeak::m_nLocalId
private

◆ m_nScore

int ModelLeak::m_nScore
private

◆ m_nSold

int ModelLeak::m_nSold
private

◆ m_sContent

std::string ModelLeak::m_sContent
private

◆ m_sCreated

std::string ModelLeak::m_sCreated
private

◆ m_sGameUuid

std::string ModelLeak::m_sGameUuid
private

◆ m_sName

std::string ModelLeak::m_sName
private

◆ m_sUpdated

std::string ModelLeak::m_sUpdated
private

◆ m_sUuid

std::string ModelLeak::m_sUuid
private

◆ TAG

std::string ModelLeak::TAG
private

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