Cavoke  1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
RoomInfo Struct Reference

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< Usermembers
 
SessionInfo session {}
 
bool isSessionAlive = false
 
bool isHost = false
 

Detailed Description

Definition at line 10 of file roominfo.h.

Constructor & Destructor Documentation

◆ RoomInfo()

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.

Member Function Documentation

◆ read()

void RoomInfo::read ( const QJsonObject &  json)

Definition at line 19 of file roominfo.cpp.

◆ write()

void RoomInfo::write ( QJsonObject &  json) const

Definition at line 52 of file roominfo.cpp.

Member Data Documentation

◆ display_name

QString RoomInfo::display_name

Definition at line 25 of file roominfo.h.

◆ host_id

QString RoomInfo::host_id

Definition at line 28 of file roominfo.h.

◆ invite_code

QString RoomInfo::invite_code

Definition at line 26 of file roominfo.h.

◆ isHost

bool RoomInfo::isHost = false

Definition at line 32 of file roominfo.h.

◆ isSessionAlive

bool RoomInfo::isSessionAlive = false

Definition at line 31 of file roominfo.h.

◆ members

QVector<User> RoomInfo::members

Definition at line 29 of file roominfo.h.

◆ room_id

QString RoomInfo::room_id

Definition at line 24 of file roominfo.h.

◆ session

SessionInfo RoomInfo::session {}

Definition at line 30 of file roominfo.h.

◆ session_id

QString RoomInfo::session_id

Definition at line 27 of file roominfo.h.


The documentation for this struct was generated from the following files: