1 | /****************************************************************************** |
2 | * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN |
3 | */ |
4 | |
5 | #include "filter.h" |
6 | |
7 | using namespace Quotient; |
8 | |
9 | DefineFilterJob::DefineFilterJob(const QString& userId, const Filter& filter) |
10 | : BaseJob(HttpVerb::Post, QStringLiteral("DefineFilterJob" ), |
11 | makePath(parts: "/_matrix/client/v3" , parts: "/user/" , parts: userId, parts: "/filter" )) |
12 | { |
13 | setRequestData({ toJson(pod: filter) }); |
14 | addExpectedKey(key: "filter_id" ); |
15 | } |
16 | |
17 | QUrl GetFilterJob::makeRequestUrl(QUrl baseUrl, const QString& userId, |
18 | const QString& filterId) |
19 | { |
20 | return BaseJob::makeRequestUrl(baseUrl: std::move(baseUrl), |
21 | encodedPath: makePath(parts: "/_matrix/client/v3" , parts: "/user/" , |
22 | parts: userId, parts: "/filter/" , parts: filterId)); |
23 | } |
24 | |
25 | GetFilterJob::GetFilterJob(const QString& userId, const QString& filterId) |
26 | : BaseJob(HttpVerb::Get, QStringLiteral("GetFilterJob" ), |
27 | makePath(parts: "/_matrix/client/v3" , parts: "/user/" , parts: userId, parts: "/filter/" , |
28 | parts: filterId)) |
29 | {} |
30 | |