/*
  SPDX-FileCopyrightText: 2026 Laurent Montel <montel@kde.org>

  SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include "textautogeneratetextmcpprotocolcore_export.h"
#include <QString>
#include <TextAutoGenerateTextMcpProtocolCore/McpProtocolResourceTemplate>
class QJsonObject;
class QDebug;
namespace TextAutoGenerateTextMcpProtocolCore
{
class TEXTAUTOGENERATETEXTMCPPROTOCOLCORE_EXPORT McpProtocolListResourceTemplatesResult
{
public:
    /*!
     */
    McpProtocolListResourceTemplatesResult();
    /*!
     */
    ~McpProtocolListResourceTemplatesResult();

    /*!
     */
    [[nodiscard]] bool operator==(const McpProtocolListResourceTemplatesResult &other) const;

    /*!
     */
    [[nodiscard]] static McpProtocolListResourceTemplatesResult fromJson(const QJsonObject &obj);
    /*!
     */
    [[nodiscard]] static QJsonObject toJson(const McpProtocolListResourceTemplatesResult &image);

    /*!
     */
    [[nodiscard]] std::optional<McpProtocolMeta> meta() const;
    /*!
     */
    void setMeta(std::optional<McpProtocolMeta> newMeta);

    /*!
     */
    [[nodiscard]] std::optional<QString> nextCursor() const;
    /*!
     */
    void setNextCursor(std::optional<QString> newNextCursor);

    /*!
     */
    [[nodiscard]] QList<McpProtocolResourceTemplate> resourceTemplates() const;
    /*!
     */
    void setResourceTemplates(const QList<McpProtocolResourceTemplate> &newResourceTemplates);

private:
    std::optional<McpProtocolMeta> mMeta;
    QList<McpProtocolResourceTemplate> mResourceTemplates;
    std::optional<QString> mNextCursor;
};
}
Q_DECLARE_TYPEINFO(TextAutoGenerateTextMcpProtocolCore::McpProtocolListResourceTemplatesResult, Q_RELOCATABLE_TYPE);
TEXTAUTOGENERATETEXTMCPPROTOCOLCORE_EXPORT QDebug operator<<(QDebug d, const TextAutoGenerateTextMcpProtocolCore::McpProtocolListResourceTemplatesResult &t);
