libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
room_key_backup.h
Go to the documentation of this file.
1// THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
2
3#pragma once
4
5#include <Quotient/csapi/definitions/key_backup_data.h>
6
7#include <Quotient/converters.h>
8
9namespace Quotient {
10//! The backed up keys for a room.
12 //! A map of session IDs to key data.
14};
15
16template <>
18 static void dumpTo(QJsonObject& jo, const RoomKeyBackup& pod)
19 {
20 addParam(jo, "sessions"_L1, pod.sessions);
21 }
22 static void fillFrom(const QJsonObject& jo, RoomKeyBackup& pod)
23 {
24 fillFromJson(jo.value("sessions"_L1), pod.sessions);
25 }
26};
27
28} // namespace Quotient
#define QUOTIENT_API
The backed up keys for a room.