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>
7public:
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
17private:
18 static inline const QString SUCCESS = "success";
19 static inline const QString MESSAGE = "message";
20};
21
22#endif // CAVOKE_VALIDATIONRESULT_H