Cavoke  1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
user.h
1#ifndef CAVOKE_USER_H
2#define CAVOKE_USER_H
3
4#include <QtCore/QJsonObject>
5#include <QtCore/QString>
6struct User {
7public:
8 User();
9 User(QString _display_name, QString _user_id);
10
11 void read(const QJsonObject &json);
12 static void write(QJsonObject &json);
13
14 QString display_name;
15 QString user_id;
16
17private:
18 static inline const QString DISPLAY_NAME = "display_name";
19 static inline const QString USER_ID = "user_id";
20};
21
22#endif // CAVOKE_USER_H
Definition: user.h:6