The Battle for Wesnoth  1.17.0-dev
Public Member Functions | Public Attributes | List of all members
mp::chat_message Struct Reference

This class represents a single stored chat message. More...

#include <lobby_data.hpp>

Public Member Functions

 chat_message (const std::time_t &timestamp, const std::string &user, const std::string &message)
 Create a chat message. More...

Public Attributes

std::time_t timestamp
std::string user
std::string message

Detailed Description

This class represents a single stored chat message.

Definition at line 30 of file lobby_data.hpp.

Constructor & Destructor Documentation

◆ chat_message()

mp::chat_message::chat_message ( const std::time_t &  timestamp,
const std::string &  user,
const std::string &  message 

Create a chat message.

Definition at line 54 of file lobby_data.cpp.

Member Data Documentation

◆ message

std::string mp::chat_message::message

Definition at line 39 of file lobby_data.hpp.

◆ timestamp

std::time_t mp::chat_message::timestamp

Definition at line 37 of file lobby_data.hpp.

◆ user

std::string mp::chat_message::user

Definition at line 38 of file lobby_data.hpp.

Referenced by mp::room_info::members().

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