|
Operator
C++ library for plugging into matrix.org
|
general "message" events (a.k.a. timeline events) More...
#include <event.hh>


Public Member Functions | |
| 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 Member Functions | |
| static std::unique_ptr< Event > | newEvent (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< Event > | newEvent (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< Event > | newEvent (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) |
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 Attributes inherited from Operator::Event::Event | |
| static const std::string | TYPE = "*" |
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 |
general "message" events (a.k.a. timeline events)
1.8.13