Skip to main content
reference

Events

namespace: privmx::endpoint::inbox

Events provides the helpers methods for module's events management.

Static Methods

isInboxCreatedEvent

Checks whether event held in the 'EventHolder' is an InboxCreatedEvent

static bool isInboxCreatedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
bool true for InboxCreatedEvent else otherwise

extractInboxCreatedEvent

Gets Event held in the 'EventHolder' as an InboxCreatedEvent

static InboxCreatedEvent extractInboxCreatedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
InboxCreatedEvent InboxCreatedEvent object

isInboxUpdatedEvent

Checks whether event held in the 'EventHolder' is an InboxUpdatedEvent

static bool isInboxUpdatedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
bool true for InboxUpdatedEvent else otherwise

extractInboxUpdatedEvent

Gets Event held in the 'EventHolder' as an InboxUpdatedEvent

static InboxUpdatedEvent extractInboxUpdatedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
InboxUpdatedEvent InboxUpdatedEvent object

isInboxDeletedEvent

Checks whether event held in the 'EventHolder' is an InboxDeletedEvent

static bool isInboxDeletedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
bool true for InboxDeletedEvent else otherwise

extractInboxDeletedEvent

Gets Event held in the 'EventHolder' as an InboxDeletedEvent

static InboxDeletedEvent extractInboxDeletedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
InboxDeletedEvent InboxDeletedEvent object

isInboxEntryCreatedEvent

Checks whether event held in the 'EventHolder' is an InboxEntryCreatedEvent

static bool isInboxEntryCreatedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
bool true for InboxEntryCreatedEvent else otherwise

extractInboxEntryCreatedEvent

Gets Event held in the 'EventHolder' as an InboxEntryCreatedEvent

static InboxEntryCreatedEvent extractInboxEntryCreatedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

isInboxEntryDeletedEvent

Checks whether event held in the 'EventHolder' is an InboxEntryDeletedEvent

static bool isInboxEntryDeletedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'

TypeDescription
bool true for InboxEntryDeletedEvent else otherwise

extractInboxEntryDeletedEvent

Gets Event held in the 'EventHolder' as an InboxEntryDeletedEvent

static InboxEntryDeletedEvent extractInboxEntryDeletedEvent(
const core::EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst core::EventHolder &holder object that wraps the 'Event'