mtx::responses::utils namespace

Different helper for parsing responses.

Typedefs

using RoomAccountDataEvents = std::vector<mtx::events::collections::RoomAccountDataEvents>
Multiple account_data events.
using TimelineEvents = std::vector<mtx::events::collections::TimelineEvents>
Multiple TimelineEvents.
using StateEvents = std::vector<mtx::events::collections::StateEvents>
Multiple StateEvents.
using StrippedEvents = std::vector<mtx::events::collections::StrippedEvents>
Multiple StrippedEvents.
using DeviceEvents = std::vector<mtx::events::collections::DeviceEvents>
Multiple DeviceEvents.
using EphemeralEvents = std::vector<mtx::events::collections::EphemeralEvents>
Multiple EphemeralEvents.

Functions

void parse_room_account_data_events(const nlohmann::json& events, RoomAccountDataEvents& container)
Parse multiple account_data events.
void parse_timeline_events(const nlohmann::json& events, TimelineEvents& container)
Parse multiple timeline events.
void parse_state_events(const nlohmann::json& events, StateEvents& container)
Parse multiple state events.
void parse_stripped_events(const nlohmann::json& events, StrippedEvents& container)
Parse multiple stripped events.
void parse_device_events(const nlohmann::json& events, DeviceEvents& container)
Parse multiple device events.
void parse_ephemeral_events(const nlohmann::json& events, EphemeralEvents& container)
Parse multiple ephemeral events.