Samchon Framework for CPP  1.0.0
samchon::example::chat_service::ChatMessage Class Reference

A chat message. More...

#include <ChatMessage.hpp>

Collaboration diagram for samchon::example::chat_service::ChatMessage:

Public Member Functions

 ChatMessage ()
 Default Constructor. More...
 
auto getListener () const -> std::string
 Get listener. More...
 
- Public Member Functions inherited from samchon::protocol::Entity< Key >
virtual auto key () const -> Key
 Get a key that can identify the Entity uniquely. More...
 

Private Attributes

std::string orator
 An orator, who told. More...
 
std::string listener
 A listener, target of whispering. More...
 
std::string message
 A message, what to say. More...
 

Detailed Description

A chat message.

An entity class representing a chat message.

example_chat_service.png
Author
Jeongho Nam

Definition at line 24 of file ChatMessage.hpp.

Constructor & Destructor Documentation

samchon::example::chat_service::ChatMessage::ChatMessage ( )

Default Constructor.

Member Function Documentation

auto samchon::example::chat_service::ChatMessage::getListener ( ) const -> std::string

Get listener.

Used to determine which (physical) client will get the message.

Member Data Documentation

std::string samchon::example::chat_service::ChatMessage::orator
private

An orator, who told.

Definition at line 33 of file ChatMessage.hpp.

std::string samchon::example::chat_service::ChatMessage::listener
private

A listener, target of whispering.

If there's not a listener to whisper, the value is "ALL".

Definition at line 45 of file ChatMessage.hpp.

std::string samchon::example::chat_service::ChatMessage::message
private

A message, what to say.

Definition at line 50 of file ChatMessage.hpp.


The documentation for this class was generated from the following file: