/*! \brief Gets the list of currently joined users and their profile data.
*
* This API returns a map of MXIDs to member info objects for members of the room. The current user must be in the room for it to work, unless it is an Application Service in which case any of the AS's users must be in the room. This API is primarily for Application Services and should be faster to respond than `/members` as it can be implemented more efficiently on the server.
*/
classGetJoinedMembersByRoomJob:publicBaseJob{
public:
// Inner data structures
/// This API returns a map of MXIDs to member info objects for members of the room. The current user must be in the room for it to work, unless it is an Application Service in which case any of the AS's users must be in the room. This API is primarily for Application Services and should be faster to respond than `/members` as it can be implemented more efficiently on the server.
structRoomMember
{
/// The display name of the user this object is representing.
std::optional<std::string>displayName;
/// The mxc avatar url of the user this object is representing.
std::optional<std::string>avatarUrl;
};
classJobResponse:publicResponse
{
public:
JobResponse(Responser);
boolsuccess()const;
// Result properties
/// A map from user ID to a RoomMember object.
immer::map<std::string,RoomMember>joined()const;
};
staticconstexprautoneedsAuth(){
returntrue
;
}
// Construction/destruction
/*! \brief Gets the list of currently joined users and their profile data.