Chatsync
bbffde5c0c672a526bdc83637acf66dc20a80fbf
|
#include <message.hpp>
Public Member Functions | |
TextMessage (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::User > | user () const |
MessageType | type () const override |
![]() | |
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 | |
![]() | |
const uint16_t | _originId |
Plaintext message representation
Now it works with std::string but looks like unicode characters are supported
|
inline |
|
inline |
|
inlinestatic |
Convertor from general Message class
|
inlineoverridevirtual |
Created to avoid typeid() calls
Implements messaging::Message.
|
inline |
|
private |
Message text
|
private |
Message author