#include <privmx/endpoint/core/Events.hpp>
'EventHolder' is an helper class containing functions to operate on 'Event' objects.
◆ EventHolder()
| privmx::endpoint::core::EventHolder::EventHolder |
( |
const std::shared_ptr< Event > & | event | ) |
|
◆ channel()
| const std::string & privmx::endpoint::core::EventHolder::channel |
( |
| ) |
const |
Extracts Event's channel
- Returns
- channel that the 'Event" arrived
◆ get()
| const std::shared_ptr< Event > & privmx::endpoint::core::EventHolder::get |
( |
| ) |
const |
Gets 'Event' object
- Returns
- pointer to the underlying 'Event' object
◆ toJSON()
| std::string privmx::endpoint::core::EventHolder::toJSON |
( |
| ) |
const |
Serializes an Event to the JSON string
- Returns
- JSON string representation of the 'Event' object
◆ type()
| const std::string & privmx::endpoint::core::EventHolder::type |
( |
| ) |
const |
The documentation for this class was generated from the following file: