Cavoke  1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
userstatistics.h
1#ifndef CAVOKE_USERSTATISTICS_H
2#define CAVOKE_USERSTATISTICS_H
3
4#include <QtCore/QJsonObject>
5#include <QtCore/QString>
7public:
9 UserStatistics(int _total_time_played_sec, int _total_games_played);
10
11 void read(const QJsonObject &json);
12 static void write(QJsonObject &json);
13
14 int total_time_played_sec = 0;
15 int total_games_played = 0;
16
17private:
18 static inline const QString TOTAL_TIME_PLAYED_SEC = "total_time_played_sec";
19 static inline const QString TOTAL_GAMES_PLAYED = "total_games_played";
20};
21
22#endif // CAVOKE_USERSTATISTICS_H