// This file generated by libqtelegram-code-generator.
// You can download it from: https://github.com/Aseman-Land/libqtelegram-code-generator
// DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

#ifndef LQTG_BOT_TYPE_BOTRESPONSEPARAMETERS
#define LQTG_BOT_TYPE_BOTRESPONSEPARAMETERS

#include "telegrambottypeobject.h"

#include <QMetaType>
#include <QVariant>
#include "../coretypes.h"

#include <QDataStream>
#include <QDebug>

#include <QtGlobal>

class LIBQTELEGRAMSHARED_EXPORT BotResponseParameters : public TelegramBotTypeObject
{
public:
    enum BotResponseParametersClassType {
        typeTypeResponseParameters = 0xffa800
    };

    BotResponseParameters(const QMap<QString, QVariant> &map);
    BotResponseParameters(const Null &_null = TelegramBotTypeObject::null);
    BotResponseParameters(const BotResponseParameters &another);
    virtual ~BotResponseParameters();

    void setMigrateToChatId(qint32 migrateToChatId);
    qint32 migrateToChatId() const;

    void setRetryAfter(qint32 retryAfter);
    qint32 retryAfter() const;

    void setClassType(BotResponseParametersClassType classType);
    BotResponseParametersClassType classType() const;

    QMap<QString, QVariant> toMap() const;
    void fromMap(const QMap<QString, QVariant> &map);
    bool operator ==(const BotResponseParameters &b) const;
    BotResponseParameters &operator =(const BotResponseParameters &b);

    bool operator==(bool stt) const { return isNull() != stt; }
    bool operator!=(bool stt) const { return !operator ==(stt); }

    QByteArray getHash(QCryptographicHash::Algorithm alg = QCryptographicHash::Md5) const;

private:
    qint32 m_migrateToChatId;
    qint32 m_retryAfter;
    BotResponseParametersClassType m_classType;
};

Q_DECLARE_METATYPE(BotResponseParameters)

QDataStream LIBQTELEGRAMSHARED_EXPORT &operator<<(QDataStream &stream, const BotResponseParameters &item);
QDataStream LIBQTELEGRAMSHARED_EXPORT &operator>>(QDataStream &stream, BotResponseParameters &item);

QDebug LIBQTELEGRAMSHARED_EXPORT operator<<(QDebug debug,  const BotResponseParameters &item);

#endif // LQTG_BOT_TYPE_BOTRESPONSEPARAMETERS
