5 #include <Quotient/jobs/basejob.h>
27 explicit SetAccountDataJob(
const QString& userId,
const QString& type,
28 const QJsonObject& content = {});
44 explicit GetAccountDataJob(
const QString& userId,
const QString& type);
50 static QUrl makeRequestUrl(
const HomeserverData& hsData,
const QString& userId,
56 QJsonObject data()
const {
return fromJson<QJsonObject>(jsonData()); }
59 inline auto collectResponse(
const GetAccountDataJob* job) {
return job->data(); }
81 explicit SetAccountDataPerRoomJob(
const QString& userId,
const QString& roomId,
82 const QString& type,
const QJsonObject& content = {});
101 explicit GetAccountDataPerRoomJob(
const QString& userId,
const QString& roomId,
102 const QString& type);
108 static QUrl makeRequestUrl(
const HomeserverData& hsData,
const QString& userId,
109 const QString& roomId,
const QString& type);
114 QJsonObject data()
const {
return fromJson<QJsonObject>(jsonData()); }
117 inline auto collectResponse(
const GetAccountDataPerRoomJob* job) {
return job->data(); }