libQuotient
A Qt library for building matrix clients
Quotient::RoomSummary Struct Reference

Room summary, as defined in MSC688. More...

#include <syncdata.h>

Public Member Functions

bool isEmpty () const
 

Public Attributes

std::optional< int > joinedMemberCount
 
std::optional< int > invitedMemberCount
 
std::optional< QStringListheroes
 mxids used to form the room name More...
 

Detailed Description

Room summary, as defined in MSC688.

Every member of this structure is an optional; as per the MSC, only changed values are sent from the server so if nothing is in the payload the respective member will be omitted. In particular, !heroes.has_value() means that nothing has come from the server; heroes.value().isEmpty() means a peculiar but valid case of a room with the only member - the current user.

Definition at line 24 of file syncdata.h.

Member Function Documentation

◆ isEmpty()

bool Quotient::RoomSummary::isEmpty ( ) const

Member Data Documentation

◆ heroes

std::optional<QStringList> Quotient::RoomSummary::heroes

mxids used to form the room name

Definition at line 27 of file syncdata.h.

◆ invitedMemberCount

std::optional<int> Quotient::RoomSummary::invitedMemberCount

Definition at line 26 of file syncdata.h.

◆ joinedMemberCount

std::optional<int> Quotient::RoomSummary::joinedMemberCount

Definition at line 25 of file syncdata.h.


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