// 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_BOTINLINEKEYBOARDBUTTON
#define LQTG_BOT_TYPE_BOTINLINEKEYBOARDBUTTON

#include "telegrambottypeobject.h"

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

#include <QDataStream>
#include <QDebug>

#include "botcallbackgame.h"
#include <QString>

class LIBQTELEGRAMSHARED_EXPORT BotInlineKeyboardButton : public TelegramBotTypeObject
{
public:
    enum BotInlineKeyboardButtonClassType {
        typeTypeInlineKeyboardButton = 0xffa800
    };

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

    void setCallback(const BotCallbackGame &callback);
    BotCallbackGame callback() const;

    void setCallbackData(const QString &callbackData);
    QString callbackData() const;

    void setSwitchInlineQuery(const QString &switchInlineQuery);
    QString switchInlineQuery() const;

    void setSwitchInlineQueryCurrentChat(const QString &switchInlineQueryCurrentChat);
    QString switchInlineQueryCurrentChat() const;

    void setText(const QString &text);
    QString text() const;

    void setUrl(const QString &url);
    QString url() const;

    void setClassType(BotInlineKeyboardButtonClassType classType);
    BotInlineKeyboardButtonClassType classType() const;

    QMap<QString, QVariant> toMap() const;
    void fromMap(const QMap<QString, QVariant> &map);
    bool operator ==(const BotInlineKeyboardButton &b) const;
    BotInlineKeyboardButton &operator =(const BotInlineKeyboardButton &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:
    BotCallbackGame m_callback;
    QString m_callbackData;
    QString m_switchInlineQuery;
    QString m_switchInlineQueryCurrentChat;
    QString m_text;
    QString m_url;
    BotInlineKeyboardButtonClassType m_classType;
};

Q_DECLARE_METATYPE(BotInlineKeyboardButton)

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

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

#endif // LQTG_BOT_TYPE_BOTINLINEKEYBOARDBUTTON
