aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/profile.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-03 21:24:49 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-03 21:24:49 +0900
commite80bfd2fc710d4780a2c22bde9d605a41bd4aaa4 (patch)
tree03eecc0f4999f90952da3d7cf8637c2fa2ac84f1 /jobs/generated/profile.cpp
parente1aedb9f3dcf7dcdc68e5eefab206258013c5114 (diff)
parentf6b55a3c8fc60dd263954df3359027eff2ef1e18 (diff)
downloadlibquotient-e80bfd2fc710d4780a2c22bde9d605a41bd4aaa4.tar.gz
libquotient-e80bfd2fc710d4780a2c22bde9d605a41bd4aaa4.zip
Merge branch 'kitsune-expose-download-urls' into kitsune-gtad
Diffstat (limited to 'jobs/generated/profile.cpp')
-rw-r--r--jobs/generated/profile.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/jobs/generated/profile.cpp b/jobs/generated/profile.cpp
index 9523ca96..1f7092d7 100644
--- a/jobs/generated/profile.cpp
+++ b/jobs/generated/profile.cpp
@@ -28,6 +28,12 @@ class GetDisplayNameJob::Private
QString displayname;
};
+QUrl GetDisplayNameJob::makeRequestUrl(QUrl baseUrl, const QString& userId)
+{
+ return BaseJob::makeRequestUrl(baseUrl,
+ basePath % "/profile/" % userId % "/displayname");
+}
+
GetDisplayNameJob::GetDisplayNameJob(const QString& userId)
: BaseJob(HttpVerb::Get, "GetDisplayNameJob",
basePath % "/profile/" % userId % "/displayname", false)
@@ -65,6 +71,12 @@ class GetAvatarUrlJob::Private
QString avatarUrl;
};
+QUrl GetAvatarUrlJob::makeRequestUrl(QUrl baseUrl, const QString& userId)
+{
+ return BaseJob::makeRequestUrl(baseUrl,
+ basePath % "/profile/" % userId % "/avatar_url");
+}
+
GetAvatarUrlJob::GetAvatarUrlJob(const QString& userId)
: BaseJob(HttpVerb::Get, "GetAvatarUrlJob",
basePath % "/profile/" % userId % "/avatar_url", false)
@@ -93,6 +105,12 @@ class GetUserProfileJob::Private
QString displayname;
};
+QUrl GetUserProfileJob::makeRequestUrl(QUrl baseUrl, const QString& userId)
+{
+ return BaseJob::makeRequestUrl(baseUrl,
+ basePath % "/profile/" % userId);
+}
+
GetUserProfileJob::GetUserProfileJob(const QString& userId)
: BaseJob(HttpVerb::Get, "GetUserProfileJob",
basePath % "/profile/" % userId, false)