EventHolder
namespace: privmx::endpoint::core
EventHolder is an helper class containing functions to operate on Event objects.
Constructors
EventHolder
EventHolder constructor
EventHolder(
const std::shared_ptr<Event> &event
)
Name | Type | Description |
---|---|---|
event | const std::shared_ptr<Event> & | pointer to the Event object to use in the EventHolder |
Methods
type
Extracts Event type
const std::string & type() const
Type | Description |
---|---|
const std::string & | type of the Event |
channel
Extracts Event channel
const std::string & channel() const
Type | Description |
---|---|
const std::string & | channel that the Event arrived |
toJSON
Serializes an Event to the JSON string
std::string toJSON() const
Type | Description |
---|---|
std::string | JSON string representation of the Event object |