1#ifndef CAVOKE_USERSTATISTICS_H
2#define CAVOKE_USERSTATISTICS_H
4#include <QtCore/QJsonObject>
5#include <QtCore/QString>
9 UserStatistics(
int _total_time_played_sec,
int _total_games_played);
11 void read(
const QJsonObject &json);
12 static void write(QJsonObject &json);
14 int total_time_played_sec = 0;
15 int total_games_played = 0;
18 static inline const QString TOTAL_TIME_PLAYED_SEC =
"total_time_played_sec";
19 static inline const QString TOTAL_GAMES_PLAYED =
"total_games_played";