37 std::string
id()
const;
39 std::string
sender()
const;
43 std::string
type()
const;
88 std::pair<std::string, std::string>
relationship()
const;
97 template<
class Archive>
99 ar & m_json & m_decryptedJson & m_decrypted & m_encrypted;
106 bool m_encrypted{
false};
109 bool operator==(
const Event &a,
const Event &b);
static const JsonWrap notYetDecryptedEvent
Definition: event.hpp:23
std::string stateKey() const
Definition: event.cpp:74
std::string replyingTo() const
Get the event id this event is replying to.
Definition: event.cpp:121
std::string type() const
Definition: event.cpp:62
void serialize(Archive &ar, std::uint32_t const)
Definition: event.hpp:98
std::pair< std::string, std::string > relationship() const
Get the relationship that this event contains.
Definition: event.cpp:155
std::string id() const
returns the id of this event
Definition: event.cpp:42
JsonWrap originalJson() const
returns the original json we fetched, probably encrypted.
Definition: event.cpp:91
bool isState() const
Definition: event.cpp:80
bool decrypted() const
Definition: event.cpp:103
Event()
Definition: event.cpp:22
JsonWrap mRelatesTo() const
Get the m.relates_to object in the event.
Definition: event.cpp:166
JsonWrap decryptedJson() const
Definition: event.cpp:95
Timestamp originServerTs() const
Definition: event.cpp:55
bool redacted() const
returns whether this event has been redacted.
Definition: event.cpp:114
JsonWrap content() const
Definition: event.cpp:68
DecryptionStatus
Definition: event.hpp:25
@ Decrypted
Definition: event.hpp:27
@ NotDecrypted
Definition: event.hpp:26
bool encrypted() const
Definition: event.cpp:99
static Event fromSync(Event e, std::string roomId)
Definition: event.cpp:36
JsonWrap raw() const
returns the decrypted json
Definition: event.cpp:86
std::string sender() const
Definition: event.cpp:49
Event setDecryptedJson(JsonWrap decryptedJson, DecryptionStatus decrypted) const
internal. only to be called from inside the client.
Definition: event.cpp:107
Definition: jsonwrap.hpp:23
Definition: location.hpp:10
bool operator!=(BaseJob a, BaseJob b)
Definition: basejob.cpp:292
nlohmann::json json
Definition: jsonwrap.hpp:20
std::int_fast64_t Timestamp
Definition: event.hpp:18
bool operator==(BaseJob a, BaseJob b)
Definition: basejob.cpp:280
Definition: location.hpp:27
static void to_json(json &j, Kazv::Event w)
Definition: event.hpp:120
static void from_json(const json &j, Kazv::Event &w)
Definition: event.hpp:124