Chatsync  bbffde5c0c672a526bdc83637acf66dc20a80fbf
messaging::ActionMessage Class Reference

#include <message.hpp>

Inheritance diagram for messaging::ActionMessage:
messaging::Message

Public Member Functions

 ActionMessage (const uint16_t origin, std::shared_ptr< const messaging::User > &&user, const std::string &data)
 
const std::string & data () const
 
const std::shared_ptr< const messaging::Useruser () const
 
MessageType type () const override
 
- Public Member Functions inherited from messaging::Message
 Message (const uint16_t id)
 

Static Public Member Functions

static auto fromMessage (const message_ptr msg)
 

Private Attributes

const std::string _data
 
const std::shared_ptr< const messaging::User_user
 

Additional Inherited Members

- Data Fields inherited from messaging::Message
const uint16_t _originId
 

Detailed Description

Action message representation

/me messages

Constructor & Destructor Documentation

§ ActionMessage()

messaging::ActionMessage::ActionMessage ( const uint16_t  origin,
std::shared_ptr< const messaging::User > &&  user,
const std::string &  data 
)
inline

Member Function Documentation

§ data()

const std::string& messaging::ActionMessage::data ( ) const
inline

§ fromMessage()

static auto messaging::ActionMessage::fromMessage ( const message_ptr  msg)
inlinestatic

Convertor from general Message class

§ type()

MessageType messaging::ActionMessage::type ( ) const
inlineoverridevirtual

Created to avoid typeid() calls

Implements messaging::Message.

§ user()

const std::shared_ptr<const messaging::User> messaging::ActionMessage::user ( ) const
inline

Field Documentation

§ _data

const std::string messaging::ActionMessage::_data
private

Message text

§ _user

const std::shared_ptr<const messaging::User> messaging::ActionMessage::_user
private

Message author


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