31 immer::array<std::string>
rooms;
46 if (! jo.is_object()) { jo = json::object(); }
63 if (jo.contains(
"lazy_load_members"s)) {
66 if (jo.contains(
"include_redundant_members"s)) {
69 if (jo.contains(
"not_rooms"s)) {
70 result.
notRooms = jo.at(
"not_rooms"s);
72 if (jo.contains(
"rooms"s)) {
73 result.
rooms = jo.at(
"rooms"s);
75 if (jo.contains(
"contains_url"s)) {
Definition: location.hpp:10
Definition: location.hpp:10
void addToJsonIfNeeded(json &j, std::string name, T &&arg)
Definition: types.hpp:80
nlohmann::json json
Definition: jsonwrap.hpp:20
Definition: location.hpp:27
Definition: event_filter.hpp:13
Definition: room_event_filter.hpp:13
std::optional< bool > containsUrl
If true, includes only events with a url key in their content. If false, excludes those events....
Definition: room_event_filter.hpp:34
immer::array< std::string > notRooms
A list of room IDs to exclude. If this list is absent then no rooms are excluded. A matching room wil...
Definition: room_event_filter.hpp:28
std::optional< bool > lazyLoadMembers
If true, enables lazy-loading of membership events.
Definition: room_event_filter.hpp:18
immer::array< std::string > rooms
A list of room IDs to include. If this list is absent then all rooms are included.
Definition: room_event_filter.hpp:31
std::optional< bool > includeRedundantMembers
If true, sends all membership events for all events, even if they have already been sent to the clien...
Definition: room_event_filter.hpp:25
static void to_json(json &jo, const RoomEventFilter &pod)
Definition: room_event_filter.hpp:44
static void from_json(const json &jo, RoomEventFilter &result)
Definition: room_event_filter.hpp:60