60 , std::string _accessToken
62 std::string roomId , std::string eventId
107 bool success()
const;
131 , std::string _accessToken
133 std::string roomId , std::string eventType , std::string stateKey
140 static BaseJob::Body buildBody(std::string roomId, std::string eventType, std::string stateKey);
153 using namespace Kazv;
175 bool success()
const;
185 std::move(jsonBody().get()).get<
EventList>()
205 , std::string _accessToken
227 using namespace Kazv;
249 bool success()
const;
290 , std::string _accessToken
292 std::string roomId , std::optional<std::string> at = std::nullopt, std::optional<std::string> membership = std::nullopt, std::optional<std::string> notMembership = std::nullopt
297 std::optional<std::string> at, std::optional<std::string> membership, std::optional<std::string> notMembership);
299 static BaseJob::Body buildBody(std::string roomId, std::optional<std::string> at, std::optional<std::string> membership, std::optional<std::string> notMembership);
312 using namespace Kazv;
345 bool success()
const;
353 immer::map<std::string, RoomMember> joined()
const;
370 , std::string _accessToken
392 using namespace Kazv;
399 if (! jo.is_object()) { jo = json::object(); }
411 if (jo.contains(
"display_name"s)) {
414 if (jo.contains(
"avatar_url"s)) {
Definition: rooms.hpp:341
Gets the list of currently joined users and their profile data.
Definition: rooms.hpp:324
static constexpr auto needsAuth()
Definition: rooms.hpp:356
Definition: rooms.hpp:245
Get the m.room.member events for the room.
Definition: rooms.hpp:239
static constexpr auto needsAuth()
Definition: rooms.hpp:260
JobResponse(Response r)
Definition: rooms.cpp:67
bool success() const
Definition: rooms.cpp:70
JsonWrap data() const
The full event.
Definition: rooms.hpp:34
Get a single event by event ID.
Definition: rooms.hpp:17
GetOneRoomEventJob(std::string serverUrl, std::string _accessToken, std::string roomId, std::string eventId)
Get a single event by event ID.
Definition: rooms.cpp:33
static BaseJob::Query buildQuery()
Definition: rooms.cpp:13
static constexpr auto needsAuth()
Definition: rooms.hpp:43
GetOneRoomEventJob withData(JsonWrap j) &&
Definition: rooms.cpp:53
static BaseJob::Body buildBody(std::string roomId, std::string eventId)
Definition: rooms.cpp:21
Definition: rooms.hpp:171
EventList data() const
The current state of the room.
Definition: rooms.hpp:182
Get all state events in the current state of a room.
Definition: rooms.hpp:165
static constexpr auto needsAuth()
Definition: rooms.hpp:191
Definition: rooms.hpp:103
Get the state identified by the type and key.
Definition: rooms.hpp:97
static constexpr auto needsAuth()
Definition: rooms.hpp:110
Definition: basejob.hpp:91
Definition: basejob.hpp:77
::Kazv::Body Body
Definition: basejob.hpp:100
Definition: jsonwrap.hpp:23
const json & get() const
Definition: jsonwrap.hpp:38
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
immer::flex_vector< Event > EventList
Definition: types.hpp:107
Definition: location.hpp:27
This API returns a map of MXIDs to member info objects for members of the room. The current user must...
Definition: rooms.hpp:330
std::optional< std::string > displayName
The display name of the user this object is representing.
Definition: rooms.hpp:332
std::optional< std::string > avatarUrl
The mxc avatar url of the user this object is representing.
Definition: rooms.hpp:334
Definition: basejob.hpp:50
JsonWrap jsonBody() const
Definition: basejob.cpp:139
static void from_json(const json &jo, GetJoinedMembersByRoomJob::RoomMember &result)
Definition: rooms.hpp:408
static void to_json(json &jo, const GetJoinedMembersByRoomJob::RoomMember &pod)
Definition: rooms.hpp:397