// 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_BOTINLINEQUERY
#define LQTG_BOT_TYPE_BOTINLINEQUERY

#include "telegrambottypeobject.h"

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

#include <QDataStream>
#include <QDebug>

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

class LIBQTELEGRAMSHARED_EXPORT BotInlineQuery : public TelegramBotTypeObject
{
public:
    enum BotInlineQueryClassType {
        typeTypeInlineQuery = 0xffa800
    };

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

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

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

    void setLocation(const BotLocation &location);
    BotLocation location() const;

    void setOffset(const QString &offset);
    QString offset() const;

    void setQuery(const QString &query);
    QString query() const;

    void setClassType(BotInlineQueryClassType classType);
    BotInlineQueryClassType classType() const;

    QMap<QString, QVariant> toMap() const;
    void fromMap(const QMap<QString, QVariant> &map);
    bool operator ==(const BotInlineQuery &b) const;
    BotInlineQuery &operator =(const BotInlineQuery &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:
    BotUser m_from;
    QString m_id;
    BotLocation m_location;
    QString m_offset;
    QString m_query;
    BotInlineQueryClassType m_classType;
};

Q_DECLARE_METATYPE(BotInlineQuery)

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

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

#endif // LQTG_BOT_TYPE_BOTINLINEQUERY
