Operator
C++ library for plugging into matrix.org
All Classes Namespaces Files Functions Typedefs Pages
Public Member Functions | Static Public Attributes | List of all members
Operator::Event::Message::Text Class Reference

normal text messages (msgtype m.text) More...

#include <event.hh>

Inheritance diagram for Operator::Event::Message::Text:
Inheritance graph
[legend]
Collaboration diagram for Operator::Event::Message::Text:
Collaboration graph
[legend]

Public Member Functions

 Text (nlohmann::json d, const std::string &room_id="") throw (Error::Error)
 
 Text (const Text &other) throw ()
 
 Text (const std::string &body, const std::string &room)
 
- Public Member Functions inherited from Operator::Event::Message::Message
 Message (nlohmann::json d, const std::string &room_id="") throw (Error::Error)
 
 Message (const Message &other) throw ()
 
 Message (const std::string &msgtype, const std::string &body, const std::string &room_id) throw ()
 
const std::string & getBody () const throw ()
 
const std::string & getMessageType () const throw ()
 
- Public Member Functions inherited from Operator::Event::MessageEvent
 MessageEvent (nlohmann::json d, const std::string &room_id="") throw (Error::Error)
 
 MessageEvent (const MessageEvent &other) throw ()
 
- Public Member Functions inherited from Operator::Event::RoomEvent
 RoomEvent (nlohmann::json d, const std::string &room_id="") throw (Error::Error)
 
const std::string & getEventID () const throw ()
 
const std::string & getSender () const throw ()
 
const nlohmann::json & getUnsigned () const throw (std::out_of_range)
 
- Public Member Functions inherited from Operator::Event::Event
 Event (nlohmann::json d, const std::string &_room_id="") throw (Error::Error)
 
const std::string & getType () const throw ()
 
const nlohmann::json & getContent () const throw ()
 
const nlohmann::json & getRawData () const throw ()
 
const std::string & getRoomID () const throw ()
 

Static Public Attributes

static const std::string MSGTYPE = "m.text"
 
- Static Public Attributes inherited from Operator::Event::Message::Message
static const std::string TYPE = "m.room.message"
 
- Static Public Attributes inherited from Operator::Event::Event
static const std::string TYPE = "*"
 

Additional Inherited Members

- Public Types inherited from Operator::Event::Event
typedef std::function< std::unique_ptr< Event >nlohmann::json data, const std::string &)> event_builder_t
 
- Static Public Member Functions inherited from Operator::Event::Message::Message
static void registerMessageClass (const std::string &type, event_builder_t)
 
static void registerMessageClass (const std::string &type, event_builder_t, event_builder_t)
 
static std::unique_ptr< EventnewEvent (nlohmann::json data, const std::string &="") throw (Error::Error)
 
- Static Public Member Functions inherited from Operator::Event::MessageEvent
static std::unique_ptr< EventnewEvent (nlohmann::json data, const std::string &="") throw (Error::Error)
 
static void registerEventClass (const std::string &type, event_builder_t)
 
- Static Public Member Functions inherited from Operator::Event::RoomEvent
static std::unique_ptr< EventnewEvent (nlohmann::json data, const std::string &="") throw (Error::Error)
 
static void registerEventClass (const std::string &type, event_builder_t)
 
- Static Public Member Functions inherited from Operator::Event::Event
static std::unique_ptr< EventnewEvent (nlohmann::json data, const std::string &="") throw (Error::Error)
 
static void registerEventClass (const std::string &type, event_builder_t)
 
template<typename T >
static std::unique_ptr< Event_new_helper (nlohmann::json data, const std::string &room_id)
 
- Protected Member Functions inherited from Operator::Event::Event
const std::string & get_room_name (const nlohmann::json &data, const std::string &room_id)
 
- Protected Attributes inherited from Operator::Event::Event
nlohmann::json data
 
std::string room_id
 

Detailed Description

normal text messages (msgtype m.text)


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