Operator
C++ library for plugging into matrix.org
Public Types | Public Member Functions | Static Public Attributes | List of all members
Operator::Event::RoomMembership Class Reference

the user's membership in a room has changed More...

#include <event.hh>

Inheritance diagram for Operator::Event::RoomMembership:
Inheritance graph
[legend]
Collaboration diagram for Operator::Event::RoomMembership:
Collaboration graph
[legend]

Public Types

enum  membership_t {
  NONE, INVITE, JOIN, KNOCK,
  LEAVE, BAN
}
 
- Public Types inherited from Operator::Event::Event
typedef std::function< std::unique_ptr< Event >nlohmann::json data, const std::string &)> event_builder_t
 

Public Member Functions

 RoomMembership (membership_t membership, const std::string &room_id) throw (Error::Error)
 
membership_t getMembership () const throw ()
 
- 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 TYPE = "ca.uhoreg.operator.__internal__.room_membership"
 
- Static Public Attributes inherited from Operator::Event::Event
static const std::string TYPE = "*"
 

Additional Inherited Members

- 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

the user's membership in a room has changed


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