// 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_BOTINLINEKEYBOARDMARKUP
#define LQTG_BOT_TYPE_BOTINLINEKEYBOARDMARKUP

#include "telegrambottypeobject.h"

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

#include <QDataStream>
#include <QDebug>

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

class LIBQTELEGRAMSHARED_EXPORT BotInlineKeyboardMarkup : public TelegramBotTypeObject
{
public:
    enum BotInlineKeyboardMarkupClassType {
        typeTypeInlineKeyboardMarkup = 0xffa800
    };

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

    void setInlineKeyboard(const QList<QList<BotInlineKeyboardButton>> &inlineKeyboard);
    QList<QList<BotInlineKeyboardButton>> inlineKeyboard() const;

    void setClassType(BotInlineKeyboardMarkupClassType classType);
    BotInlineKeyboardMarkupClassType classType() const;

    QMap<QString, QVariant> toMap() const;
    void fromMap(const QMap<QString, QVariant> &map);
    bool operator ==(const BotInlineKeyboardMarkup &b) const;
    BotInlineKeyboardMarkup &operator =(const BotInlineKeyboardMarkup &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<BotInlineKeyboardButton>> m_inlineKeyboard;
    BotInlineKeyboardMarkupClassType m_classType;
};

Q_DECLARE_METATYPE(BotInlineKeyboardMarkup)

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

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

#endif // LQTG_BOT_TYPE_BOTINLINEKEYBOARDMARKUP
