libkazv
Kazv::Api::PushCondition Struct Reference

#include <push_condition.hpp>

Public Attributes

std::string kind
 The kind of condition to apply. More...
 
std::optional< std::string > key
 Required for event_match conditions. More...
 
std::optional< std::string > pattern
 Required for event_match conditions. More...
 
std::optional< std::string > is
 Required for room_member_count conditions. More...
 

Member Data Documentation

◆ is

std::optional<std::string> Kazv::Api::PushCondition::is

Required for room_member_count conditions.

A decimal integer optionally prefixed by one of, ==, <, >, >= or <=. A prefix of < matches rooms where the member count is strictly less than the given number and so forth. If no prefix is present, this parameter defaults to ==.

◆ key

std::optional<std::string> Kazv::Api::PushCondition::key

Required for event_match conditions.

The dot-separated field of the event to match.

Required for sender_notification_permission conditions. The field in the power level event the user needs a minimum power level for. Fields must be specified under the notifications property in the power level event's content.

◆ kind

std::string Kazv::Api::PushCondition::kind

The kind of condition to apply.

See conditions for more information on the allowed kinds and how they work.

◆ pattern

std::optional<std::string> Kazv::Api::PushCondition::pattern

Required for event_match conditions.

The glob-style pattern to match against.


The documentation for this struct was generated from the following file: