From b71baf486dc276ad616e3c7b46f44b4cafb62f40 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 20 Jul 2018 07:28:11 +0900 Subject: csapi: Rename entities in application-service/ The actual change is in API definition files, this is just regeneration. --- lib/csapi/third_party_lookup.cpp | 6 +++--- lib/csapi/third_party_lookup.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/csapi') diff --git a/lib/csapi/third_party_lookup.cpp b/lib/csapi/third_party_lookup.cpp index 783d6896..d1158d19 100644 --- a/lib/csapi/third_party_lookup.cpp +++ b/lib/csapi/third_party_lookup.cpp @@ -53,7 +53,7 @@ BaseJob::Status GetProtocolsJob::parseJson(const QJsonDocument& data) class GetProtocolMetadataJob::Private { public: - Protocol data; + ThirdPartyProtocol data; }; QUrl GetProtocolMetadataJob::makeRequestUrl(QUrl baseUrl, const QString& protocol) @@ -73,7 +73,7 @@ GetProtocolMetadataJob::GetProtocolMetadataJob(const QString& protocol) GetProtocolMetadataJob::~GetProtocolMetadataJob() = default; -const Protocol& GetProtocolMetadataJob::data() const +const ThirdPartyProtocol& GetProtocolMetadataJob::data() const { return d->data; } @@ -84,7 +84,7 @@ BaseJob::Status GetProtocolMetadataJob::parseJson(const QJsonDocument& data) if (!json.contains("data"_ls)) return { JsonParseError, "The key 'data' not found in the response" }; - d->data = fromJson(json.value("data"_ls)); + d->data = fromJson(json.value("data"_ls)); return Success; } diff --git a/lib/csapi/third_party_lookup.h b/lib/csapi/third_party_lookup.h index c66902d7..8dec11a4 100644 --- a/lib/csapi/third_party_lookup.h +++ b/lib/csapi/third_party_lookup.h @@ -74,7 +74,7 @@ namespace QMatrixClient // Result properties /// The protocol was found and metadata returned. - const Protocol& data() const; + const ThirdPartyProtocol& data() const; protected: Status parseJson(const QJsonDocument& data) override; -- cgit v1.2.3