Cavoke
1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
validationresult.h
1
#ifndef CAVOKE_VALIDATIONRESULT_H
2
#define CAVOKE_VALIDATIONRESULT_H
3
4
#include <QtCore/QJsonObject>
5
#include <QtCore/QString>
6
struct
ValidationResult
{
7
public
:
8
ValidationResult
();
9
ValidationResult
(
bool
_success, QString _message);
10
11
void
read(
const
QJsonObject &json);
12
void
write(QJsonObject &json)
const
;
13
14
bool
success =
false
;
15
QString message =
"Empty result"
;
16
17
private
:
18
static
inline
const
QString SUCCESS =
"success"
;
19
static
inline
const
QString MESSAGE =
"message"
;
20
};
21
22
#endif
// CAVOKE_VALIDATIONRESULT_H
ValidationResult
Definition:
validationresult.h:6
client
entities
validationresult.h
Generated by
1.9.6