aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/profile.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-11-30 03:36:29 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-07 12:33:55 +0900
commit6fc3c79c2b3ac318d3a140594ded28020f9a8afb (patch)
treed1940e407f68966cb7dbffb991ca06a2d728dbc1 /jobs/generated/profile.cpp
parente88627976488b0b6eea6da3389eefb860980d661 (diff)
downloadlibquotient-6fc3c79c2b3ac318d3a140594ded28020f9a8afb.tar.gz
libquotient-6fc3c79c2b3ac318d3a140594ded28020f9a8afb.zip
Generated jobs: Apply naming convention to parameters
It's now camelCase everywhere, even if The Spec uses snake_case (it is not consistent in that respect).
Diffstat (limited to 'jobs/generated/profile.cpp')
-rw-r--r--jobs/generated/profile.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/jobs/generated/profile.cpp b/jobs/generated/profile.cpp
index f24db15a..f682ad31 100644
--- a/jobs/generated/profile.cpp
+++ b/jobs/generated/profile.cpp
@@ -57,22 +57,22 @@ BaseJob::Status GetDisplayNameJob::parseJson(const QJsonDocument& data)
return Success;
}
-SetAvatarUrlJob::SetAvatarUrlJob(QString userId, QString avatar_url)
+SetAvatarUrlJob::SetAvatarUrlJob(QString userId, QString avatarUrl)
: BaseJob(HttpVerb::Put, "SetAvatarUrlJob",
basePath % "/profile/" % userId % "/avatar_url",
Query { }
)
{
Data _data;
- if (!avatar_url.isEmpty())
- _data.insert("avatar_url", toJson(avatar_url));
+ if (!avatarUrl.isEmpty())
+ _data.insert("avatar_url", toJson(avatarUrl));
setRequestData(_data);
}
class GetAvatarUrlJob::Private
{
public:
- QString avatar_url;
+ QString avatarUrl;
};
@@ -88,16 +88,16 @@ GetAvatarUrlJob::~GetAvatarUrlJob()
delete d;
}
-const QString& GetAvatarUrlJob::avatar_url() const
+const QString& GetAvatarUrlJob::avatarUrl() const
{
- return d->avatar_url;
+ return d->avatarUrl;
}
BaseJob::Status GetAvatarUrlJob::parseJson(const QJsonDocument& data)
{
auto json = data.object();
- d->avatar_url = fromJson<QString>(json.value("avatar_url"));
+ d->avatarUrl = fromJson<QString>(json.value("avatar_url"));
return Success;
}
@@ -105,7 +105,7 @@ BaseJob::Status GetAvatarUrlJob::parseJson(const QJsonDocument& data)
class GetUserProfileJob::Private
{
public:
- QString avatar_url;
+ QString avatarUrl;
QString displayname;
};
@@ -122,9 +122,9 @@ GetUserProfileJob::~GetUserProfileJob()
delete d;
}
-const QString& GetUserProfileJob::avatar_url() const
+const QString& GetUserProfileJob::avatarUrl() const
{
- return d->avatar_url;
+ return d->avatarUrl;
}
const QString& GetUserProfileJob::displayname() const
@@ -136,7 +136,7 @@ BaseJob::Status GetUserProfileJob::parseJson(const QJsonDocument& data)
{
auto json = data.object();
- d->avatar_url = fromJson<QString>(json.value("avatar_url"));
+ d->avatarUrl = fromJson<QString>(json.value("avatar_url"));
d->displayname = fromJson<QString>(json.value("displayname"));