1#ifndef CAVOKE_SESSIONINFO_H
2#define CAVOKE_SESSIONINFO_H
4#include <QtCore/QJsonArray>
5#include <QtCore/QJsonObject>
6#include <QtCore/QString>
7#include <QtCore/QVector>
10 enum class Status { NOT_STARTED, RUNNING, FINISHED };
16 SessionInfo::Status _status,
18 QVector<Player> _players);
20 void read(
const QJsonObject &json);
21 void write(QJsonObject &json)
const;
25 SessionInfo::Status status = Status::FINISHED;
27 QVector<Player> players;
31 static inline const QString SESSION_ID =
"session_id";
32 static inline const QString GAME_ID =
"game_id";
33 static inline const QString STATUS =
"status";
34 static inline const QString HOST_ID =
"host_id";
35 static inline const QString PLAYERS =
"players";