// 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_BOTGAME
#define LQTG_BOT_TYPE_BOTGAME

#include "telegrambottypeobject.h"

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

#include <QDataStream>
#include <QDebug>

#include "botanimation.h"
#include <QString>
#include <QList>
#include "botphotosize.h"
#include "botmessageentity.h"

class LIBQTELEGRAMSHARED_EXPORT BotGame : public TelegramBotTypeObject
{
public:
    enum BotGameClassType {
        typeTypeGame = 0xffa800
    };

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

    void setAnimation(const BotAnimation &animation);
    BotAnimation animation() const;

    void setDescription(const QString &description);
    QString description() const;

    void setPhoto(const QList<BotPhotoSize> &photo);
    QList<BotPhotoSize> photo() const;

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

    void setTextEntities(const QList<BotMessageEntity> &textEntities);
    QList<BotMessageEntity> textEntities() const;

    void setTitle(const QString &title);
    QString title() const;

    void setClassType(BotGameClassType classType);
    BotGameClassType classType() const;

    QMap<QString, QVariant> toMap() const;
    void fromMap(const QMap<QString, QVariant> &map);
    bool operator ==(const BotGame &b) const;
    BotGame &operator =(const BotGame &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:
    BotAnimation m_animation;
    QString m_description;
    QList<BotPhotoSize> m_photo;
    QString m_text;
    QList<BotMessageEntity> m_textEntities;
    QString m_title;
    BotGameClassType m_classType;
};

Q_DECLARE_METATYPE(BotGame)

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

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

#endif // LQTG_BOT_TYPE_BOTGAME
