aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi')
-rw-r--r--lib/csapi/third_party_lookup.cpp6
-rw-r--r--lib/csapi/third_party_lookup.h2
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;