// 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_BOTCALLBACKQUERY
#define LQTG_BOT_TYPE_BOTCALLBACKQUERY

#include "telegrambottypeobject.h"

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

#include <QDataStream>
#include <QDebug>

#include <QString>
#include "botuser.h"
#include "botmessage.h"

class LIBQTELEGRAMSHARED_EXPORT BotCallbackQuery : public TelegramBotTypeObject
{
public:
    enum BotCallbackQueryClassType {
        typeTypeCallbackQuery = 0xffa800
    };

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

    void setChatInstance(const QString &chatInstance);
    QString chatInstance() const;

    void setData(const QString &data);
    QString data() const;

    void setFrom(const BotUser &from);
    BotUser from() const;

    void setGameShortName(const QString &gameShortName);
    QString gameShortName() const;

    void setId(const QString &id);
    QString id() const;

    void setInlineMessageId(const QString &inlineMessageId);
    QString inlineMessageId() const;

    void setMessage(const BotMessage &message);
    BotMessage message() const;

    void setClassType(BotCallbackQueryClassType classType);
    BotCallbackQueryClassType classType() const;

    QMap<QString, QVariant> toMap() const;
    void fromMap(const QMap<QString, QVariant> &map);
    bool operator ==(const BotCallbackQuery &b) const;
    BotCallbackQuery &operator =(const BotCallbackQuery &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:
    QString m_chatInstance;
    QString m_data;
    BotUser m_from;
    QString m_gameShortName;
    QString m_id;
    QString m_inlineMessageId;
    BotMessage m_message;
    BotCallbackQueryClassType m_classType;
};

Q_DECLARE_METATYPE(BotCallbackQuery)

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

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

#endif // LQTG_BOT_TYPE_BOTCALLBACKQUERY
