libkazv
Kazv::PushRulesDesc Class Reference

#include <push-rules-desc.hpp>

Public Member Functions

 PushRulesDesc ()
 Construct an invalid PushRulesDesc. More...
 
 PushRulesDesc (const Event &pushRulesEvent)
 Construct a PushRulesDesc from pushRulesEvent. More...
 
 ~PushRulesDesc ()
 
bool valid () const
 Check whether this PushRulesDesc is valid. More...
 
PushAction handle (const Event &e, const RoomModel &room) const
 Check whether we should send a notification about event e. More...
 

Constructor & Destructor Documentation

◆ PushRulesDesc() [1/2]

Kazv::PushRulesDesc::PushRulesDesc ( )

Construct an invalid PushRulesDesc.

◆ PushRulesDesc() [2/2]

Kazv::PushRulesDesc::PushRulesDesc ( const Event pushRulesEvent)

Construct a PushRulesDesc from pushRulesEvent.

◆ ~PushRulesDesc()

Kazv::PushRulesDesc::~PushRulesDesc ( )
default

Member Function Documentation

◆ handle()

PushAction Kazv::PushRulesDesc::handle ( const Event e,
const RoomModel room 
) const

Check whether we should send a notification about event e.

Parameters
eThe event to check.
roomThe model of the room where the event is in.
Returns
Action about event e.

◆ valid()

bool Kazv::PushRulesDesc::valid ( ) const

Check whether this PushRulesDesc is valid.


The documentation for this class was generated from the following files: