Cavoke
1.1.0
A Platform for creating and hosting multiplayer turn-based board games
|
Public Member Functions | |
RoomInfo (QString _room_id, QString _display_name, QString _invite_code, QString _session_id, QString _host_id, QVector< User > _members, SessionInfo _session) | |
void | read (const QJsonObject &json) |
void | write (QJsonObject &json) const |
Public Attributes | |
QString | room_id |
QString | display_name |
QString | invite_code |
QString | session_id |
QString | host_id |
QVector< User > | members |
SessionInfo | session {} |
bool | isSessionAlive = false |
bool | isHost = false |
Definition at line 10 of file roominfo.h.
RoomInfo::RoomInfo | ( | QString | _room_id, |
QString | _display_name, | ||
QString | _invite_code, | ||
QString | _session_id, | ||
QString | _host_id, | ||
QVector< User > | _members, | ||
SessionInfo | _session | ||
) |
Definition at line 4 of file roominfo.cpp.
void RoomInfo::read | ( | const QJsonObject & | json | ) |
Definition at line 19 of file roominfo.cpp.
void RoomInfo::write | ( | QJsonObject & | json | ) | const |
Definition at line 52 of file roominfo.cpp.
QString RoomInfo::display_name |
Definition at line 25 of file roominfo.h.
QString RoomInfo::host_id |
Definition at line 28 of file roominfo.h.
QString RoomInfo::invite_code |
Definition at line 26 of file roominfo.h.
bool RoomInfo::isHost = false |
Definition at line 32 of file roominfo.h.
bool RoomInfo::isSessionAlive = false |
Definition at line 31 of file roominfo.h.
QVector<User> RoomInfo::members |
Definition at line 29 of file roominfo.h.
QString RoomInfo::room_id |
Definition at line 24 of file roominfo.h.
SessionInfo RoomInfo::session {} |
Definition at line 30 of file roominfo.h.
QString RoomInfo::session_id |
Definition at line 27 of file roominfo.h.