libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
Quotient::EventRelation Struct Reference

Data about one relation of an event to an upstream event (e.g. a reply or a reaction). More...

#include <eventrelation.h>

Public Types

using typeid_t = QLatin1String

Static Public Member Functions

static EventRelation replyTo (QString eventId)
static EventRelation annotate (QString eventId, QString key)
static EventRelation replace (QString eventId)
static EventRelation replyInThread (QString threadRootId, bool isFallingBack, QString inThreadReplyEventId)

Public Attributes

QString type
QString eventId
QString key = {}
bool isFallingBack = false
QString inThreadReplyEventId = {}

Static Public Attributes

static constexpr auto ReplyType = "m.in_reply_to"_L1
static constexpr auto AnnotationType = "m.annotation"_L1
static constexpr auto ReplacementType = "m.replace"_L1
static constexpr auto ThreadType = "m.thread"_L1

Detailed Description

Data about one relation of an event to an upstream event (e.g. a reply or a reaction).

This structure contains all information pertaining to a single event relation. In terms of CS API it corresponds to the contents of m.relates_to and m.in_reply_to JSON objects.

Definition at line 20 of file eventrelation.h.

Member Typedef Documentation

◆ typeid_t

using Quotient::EventRelation::typeid_t = QLatin1String

Definition at line 21 of file eventrelation.h.

Member Function Documentation

◆ annotate()

EventRelation Quotient::EventRelation::annotate ( QString eventId,
QString key )
inlinestatic

Definition at line 41 of file eventrelation.h.

◆ replace()

EventRelation Quotient::EventRelation::replace ( QString eventId)
inlinestatic

Definition at line 45 of file eventrelation.h.

◆ replyInThread()

EventRelation Quotient::EventRelation::replyInThread ( QString threadRootId,
bool isFallingBack,
QString inThreadReplyEventId )
inlinestatic

Definition at line 49 of file eventrelation.h.

◆ replyTo()

EventRelation Quotient::EventRelation::replyTo ( QString eventId)
inlinestatic

Definition at line 37 of file eventrelation.h.

Member Data Documentation

◆ AnnotationType

auto Quotient::EventRelation::AnnotationType = "m.annotation"_L1
staticconstexpr

Definition at line 33 of file eventrelation.h.

◆ eventId

QString Quotient::EventRelation::eventId

Definition at line 25 of file eventrelation.h.

◆ inThreadReplyEventId

QString Quotient::EventRelation::inThreadReplyEventId = {}

Definition at line 30 of file eventrelation.h.

◆ isFallingBack

bool Quotient::EventRelation::isFallingBack = false

Definition at line 27 of file eventrelation.h.

◆ key

QString Quotient::EventRelation::key = {}

Definition at line 26 of file eventrelation.h.

◆ ReplacementType

auto Quotient::EventRelation::ReplacementType = "m.replace"_L1
staticconstexpr

Definition at line 34 of file eventrelation.h.

◆ ReplyType

auto Quotient::EventRelation::ReplyType = "m.in_reply_to"_L1
staticconstexpr

Definition at line 32 of file eventrelation.h.

◆ ThreadType

auto Quotient::EventRelation::ThreadType = "m.thread"_L1
staticconstexpr

Definition at line 35 of file eventrelation.h.

◆ type

QString Quotient::EventRelation::type

Definition at line 24 of file eventrelation.h.


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