API Reference/Endpoint/Core
EventHolder
'EventHolder' is an helper class containing functions to operate on 'Event' objects.
Constructors
EventHolder
'EventHolder' constructor
Params
event
const std::shared_ptr<Event> &
pointer to the 'Event' object to use in the 'EventHolder'
Methods
type
Extracts Event's type
Returns
conststd::string&
·
type of the 'Event'
channel
Extracts Event's channel
Returns
conststd::string&
·
channel that the 'Event" arrived
toJSON
Serializes an Event to the JSON string
Returns
std::string
·
JSON string representation of the 'Event' object
get
Gets 'Event' object
Returns
conststd::shared_ptr<Event>&
·
pointer to the underlying 'Event' object
We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.