Operator
C++ library for plugging into matrix.org
|
#include <event.hh>
Additional Inherited Members | |
![]() | |
typedef std::function< std::unique_ptr< Event >nlohmann::json data, const std::string &)> | event_builder_t |
![]() | |
Notice (nlohmann::json d, const std::string &room_id="") throw (Error::Error) | |
Notice (const Text &other) throw () | |
Notice (const std::string &body, const std::string &room) | |
![]() | |
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 () |
![]() | |
MessageEvent (nlohmann::json d, const std::string &room_id="") throw (Error::Error) | |
MessageEvent (const MessageEvent &other) throw () | |
![]() | |
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) |
![]() | |
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 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< Event > | newEvent (nlohmann::json data, const std::string &="") throw (Error::Error) |
![]() | |
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 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 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) |
![]() | |
static const std::string | MSGTYPE = "m.notice" |
![]() | |
static const std::string | TYPE = "m.room.message" |
![]() | |
static const std::string | TYPE = "*" |
![]() | |
const std::string & | get_room_name (const nlohmann::json &data, const std::string &room_id) |
![]() | |
nlohmann::json | data |
std::string | room_id |
HTML notice messages.