diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-20 07:28:11 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-20 07:28:11 +0900 |
commit | b71baf486dc276ad616e3c7b46f44b4cafb62f40 (patch) | |
tree | 2fa8d2f95fbd24a7c5d98c542f6f7c406a631158 /lib/csapi | |
parent | f004c32ae4291fd8eca7f4106af7582e6fc86f5a (diff) | |
download | libquotient-b71baf486dc276ad616e3c7b46f44b4cafb62f40.tar.gz libquotient-b71baf486dc276ad616e3c7b46f44b4cafb62f40.zip |
csapi: Rename entities in application-service/
The actual change is in API definition files, this is just regeneration.
Diffstat (limited to 'lib/csapi')
-rw-r--r-- | lib/csapi/third_party_lookup.cpp | 6 | ||||
-rw-r--r-- | lib/csapi/third_party_lookup.h | 2 |
2 files changed, 4 insertions, 4 deletions
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<Protocol>(json.value("data"_ls)); + d->data = fromJson<ThirdPartyProtocol>(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; |