Cavoke  1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
ValidationResult Struct Reference

Public Member Functions

 ValidationResult (bool _success, QString _message)
 
void read (const QJsonObject &json)
 
void write (QJsonObject &json) const
 

Public Attributes

bool success = false
 
QString message = "Empty result"
 

Detailed Description

Definition at line 6 of file validationresult.h.

Constructor & Destructor Documentation

◆ ValidationResult()

ValidationResult::ValidationResult ( bool  _success,
QString  _message 
)

Definition at line 4 of file validationresult.cpp.

Member Function Documentation

◆ read()

void ValidationResult::read ( const QJsonObject &  json)

Definition at line 8 of file validationresult.cpp.

◆ write()

void ValidationResult::write ( QJsonObject &  json) const

Definition at line 20 of file validationresult.cpp.

Member Data Documentation

◆ message

QString ValidationResult::message = "Empty result"

Definition at line 15 of file validationresult.h.

◆ success

bool ValidationResult::success = false

Definition at line 14 of file validationresult.h.


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