From 6fc3c79c2b3ac318d3a140594ded28020f9a8afb Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Thu, 30 Nov 2017 03:36:29 +0900 Subject: 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). --- jobs/generated/profile.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'jobs/generated/profile.cpp') 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(json.value("avatar_url")); + d->avatarUrl = fromJson(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(json.value("avatar_url")); + d->avatarUrl = fromJson(json.value("avatar_url")); d->displayname = fromJson(json.value("displayname")); -- cgit v1.2.3