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

Static Public Member Functions

static RoomInfo from_room_and_members (const drogon_model::cavoke_orm::Rooms &room_orm, const std::vector< GameSessionAccessObject::UserInfo > &members)
 

Public Attributes

std::string room_id
 
std::string invite_code
 
std::string display_name
 
std::string session_id
 
GameSessionAccessObject::GameSessionInfo session
 
std::string host_id
 
std::vector< GameSessionAccessObject::UserInfomembers
 

Detailed Description

Definition at line 22 of file rooms_storage.h.

Member Function Documentation

◆ from_room_and_members()

RoomsStorage::RoomInfo cavoke::server::model::RoomsStorage::RoomInfo::from_room_and_members ( const drogon_model::cavoke_orm::Rooms &  room_orm,
const std::vector< GameSessionAccessObject::UserInfo > &  members 
)
static

Definition at line 171 of file rooms_storage.cpp.

Member Data Documentation

◆ display_name

std::string cavoke::server::model::RoomsStorage::RoomInfo::display_name

Definition at line 25 of file rooms_storage.h.

◆ host_id

std::string cavoke::server::model::RoomsStorage::RoomInfo::host_id

Definition at line 28 of file rooms_storage.h.

◆ invite_code

std::string cavoke::server::model::RoomsStorage::RoomInfo::invite_code

Definition at line 24 of file rooms_storage.h.

◆ members

std::vector<GameSessionAccessObject::UserInfo> cavoke::server::model::RoomsStorage::RoomInfo::members

Definition at line 29 of file rooms_storage.h.

◆ room_id

std::string cavoke::server::model::RoomsStorage::RoomInfo::room_id

Definition at line 23 of file rooms_storage.h.

◆ session

GameSessionAccessObject::GameSessionInfo cavoke::server::model::RoomsStorage::RoomInfo::session

Definition at line 27 of file rooms_storage.h.

◆ session_id

std::string cavoke::server::model::RoomsStorage::RoomInfo::session_id

Definition at line 26 of file rooms_storage.h.


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