// 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_BOTKEYBOARDBUTTON
#define LQTG_BOT_TYPE_BOTKEYBOARDBUTTON

#include "telegrambottypeobject.h"

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

#include <QDataStream>
#include <QDebug>

#include <QString>

class LIBQTELEGRAMSHARED_EXPORT BotKeyboardButton : public TelegramBotTypeObject
{
public:
    enum BotKeyboardButtonClassType {
        typeTypeKeyboardButton = 0xffa800
    };

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

    void setRequestContact(bool requestContact);
    bool requestContact() const;

    void setRequestLocation(bool requestLocation);
    bool requestLocation() const;

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

    void setClassType(BotKeyboardButtonClassType classType);
    BotKeyboardButtonClassType classType() const;

    QMap<QString, QVariant> toMap() const;
    void fromMap(const QMap<QString, QVariant> &map);
    bool operator ==(const BotKeyboardButton &b) const;
    BotKeyboardButton &operator =(const BotKeyboardButton &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:
    bool m_requestContact;
    bool m_requestLocation;
    QString m_text;
    BotKeyboardButtonClassType m_classType;
};

Q_DECLARE_METATYPE(BotKeyboardButton)

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

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

#endif // LQTG_BOT_TYPE_BOTKEYBOARDBUTTON
