libkazv
Kazv::Api::ClientEventWithoutRoomID Struct Reference

The format used for events when they are returned from API endpoints such as /sync, where the room_id is implied elsewhere in the response. More...

#include <client_event_without_room_id.hpp>

Collaboration diagram for Kazv::Api::ClientEventWithoutRoomID:

Public Attributes

std::string eventId
 The globally unique identifier for this event. More...
 
std::string type
 The type of the event. More...
 
std::string sender
 Contains the fully-qualified ID of the user who sent this event. More...
 
std::int_fast64_t originServerTs
 Timestamp (in milliseconds since the unix epoch) on originating homeserver when this event was sent. More...
 
JsonWrap content
 The body of this event, as created by the client which sent it. More...
 
std::optional< std::string > stateKey
 Present if, and only if, this event is a state event. More...
 
std::optional< UnsignedDataunsignedData
 Contains optional extra information about the event. More...
 

Detailed Description

The format used for events when they are returned from API endpoints such as /sync, where the room_id is implied elsewhere in the response.

Member Data Documentation

◆ content

JsonWrap Kazv::Api::ClientEventWithoutRoomID::content

The body of this event, as created by the client which sent it.

◆ eventId

std::string Kazv::Api::ClientEventWithoutRoomID::eventId

The globally unique identifier for this event.

◆ originServerTs

std::int_fast64_t Kazv::Api::ClientEventWithoutRoomID::originServerTs

Timestamp (in milliseconds since the unix epoch) on originating homeserver when this event was sent.

◆ sender

std::string Kazv::Api::ClientEventWithoutRoomID::sender

Contains the fully-qualified ID of the user who sent this event.

◆ stateKey

std::optional<std::string> Kazv::Api::ClientEventWithoutRoomID::stateKey

Present if, and only if, this event is a state event.

The key making this piece of state unique in the room. Note that it is often an empty string.

State keys starting with an @ are reserved for referencing user IDs, such as room members. With the exception of a few events, state events set with a given user's ID as the state key MUST only be set by that user.

◆ type

std::string Kazv::Api::ClientEventWithoutRoomID::type

The type of the event.

◆ unsignedData

std::optional<UnsignedData> Kazv::Api::ClientEventWithoutRoomID::unsignedData

Contains optional extra information about the event.


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