// 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_BOTREPLYKEYBOARDMARKUP
#define LQTG_BOT_TYPE_BOTREPLYKEYBOARDMARKUP

#include "telegrambottypeobject.h"

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

#include <QDataStream>
#include <QDebug>

#include <QList>
#include "botkeyboardbutton.h"

class LIBQTELEGRAMSHARED_EXPORT BotReplyKeyboardMarkup : public TelegramBotTypeObject
{
public:
    enum BotReplyKeyboardMarkupClassType {
        typeTypeReplyKeyboardMarkup = 0xffa800
    };

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

    void setKeyboard(const QList<QList<BotKeyboardButton>> &keyboard);
    QList<QList<BotKeyboardButton>> keyboard() const;

    void setOneTimeKeyboard(bool oneTimeKeyboard);
    bool oneTimeKeyboard() const;

    void setResizeKeyboard(bool resizeKeyboard);
    bool resizeKeyboard() const;

    void setSelective(bool selective);
    bool selective() const;

    void setClassType(BotReplyKeyboardMarkupClassType classType);
    BotReplyKeyboardMarkupClassType classType() const;

    QMap<QString, QVariant> toMap() const;
    void fromMap(const QMap<QString, QVariant> &map);
    bool operator ==(const BotReplyKeyboardMarkup &b) const;
    BotReplyKeyboardMarkup &operator =(const BotReplyKeyboardMarkup &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:
    QList<QList<BotKeyboardButton>> m_keyboard;
    bool m_oneTimeKeyboard;
    bool m_resizeKeyboard;
    bool m_selective;
    BotReplyKeyboardMarkupClassType m_classType;
};

Q_DECLARE_METATYPE(BotReplyKeyboardMarkup)

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

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

#endif // LQTG_BOT_TYPE_BOTREPLYKEYBOARDMARKUP
