File indexing completed on 2024-05-19 08:53:43
0001 /* 0002 SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "librestapi_private_export.h" 0010 #include "restapiutil.h" 0011 #include <QString> 0012 #include <QUrl> 0013 namespace RocketChatRestApi 0014 { 0015 class LIBROCKETCHATRESTAPI_QT_TESTS_EXPORT RestApiMethod 0016 { 0017 public: 0018 RestApiMethod(); 0019 0020 [[nodiscard]] QString serverUrl() const; 0021 void setServerUrl(const QString &serverUrl); 0022 0023 [[nodiscard]] QUrl generateUrl(RestApiUtil::RestApiUrlType type, const QString &urlExtension = QString(), bool useV1Extension = true); 0024 0025 private: 0026 QString mServerUrl; 0027 }; 0028 }