aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/administrative_contact.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-03 19:17:10 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-03 19:17:10 +0900
commit23dc9a3259108f8e0c55e535b9341042f1ff77f5 (patch)
tree59e6c68b14fc73f0aab6d72807ce85ec241947d8 /jobs/generated/administrative_contact.cpp
parente000929c0b06752703056b890ff0b5a4deae1c6a (diff)
downloadlibquotient-23dc9a3259108f8e0c55e535b9341042f1ff77f5.tar.gz
libquotient-23dc9a3259108f8e0c55e535b9341042f1ff77f5.zip
jobs/generated: Generate job-specific makeRequestUrl() methods
Diffstat (limited to 'jobs/generated/administrative_contact.cpp')
-rw-r--r--jobs/generated/administrative_contact.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/jobs/generated/administrative_contact.cpp b/jobs/generated/administrative_contact.cpp
index 479bee52..1af57941 100644
--- a/jobs/generated/administrative_contact.cpp
+++ b/jobs/generated/administrative_contact.cpp
@@ -42,6 +42,12 @@ class GetAccount3PIDsJob::Private
QVector<ThirdPartyIdentifier> threepids;
};
+QUrl GetAccount3PIDsJob::makeRequestUrl(QUrl baseUrl)
+{
+ return BaseJob::makeRequestUrl(baseUrl,
+ basePath % "/account/3pid");
+}
+
GetAccount3PIDsJob::GetAccount3PIDsJob()
: BaseJob(HttpVerb::Get, "GetAccount3PIDsJob",
basePath % "/account/3pid")
@@ -102,6 +108,12 @@ Post3PIDsJob::Post3PIDsJob(const ThreePidCredentials& threePidCreds, bool bind)
setRequestData(_data);
}
+QUrl RequestTokenTo3PIDJob::makeRequestUrl(QUrl baseUrl)
+{
+ return BaseJob::makeRequestUrl(baseUrl,
+ basePath % "/account/3pid/email/requestToken");
+}
+
RequestTokenTo3PIDJob::RequestTokenTo3PIDJob()
: BaseJob(HttpVerb::Post, "RequestTokenTo3PIDJob",
basePath % "/account/3pid/email/requestToken", false)