#include <include/mtx/events.hpp>
template<class Content>
Event struct
The basic set of fields all events must have.
Derived classes
-
template<class Content>struct DeviceEvent
- Extension of the Event type for device events.
-
template<class Content>struct RoomEvent
- RoomEvent.
Public variables
- EventType type
- The type of event. This should be namespaced similar to Java package naming conventions e.g. 'com.example.subdomain.event.type'.
- std::string sender
- Contains the fully-qualified ID of the user who sent this event.
- Content content
- The fields in this object will vary depending on the type of event. When interacting with the REST API, this is the HTTP body.