// 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_BOTANIMATION
#define LQTG_BOT_TYPE_BOTANIMATION

#include "telegrambottypeobject.h"

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

#include <QDataStream>
#include <QDebug>

#include <QString>
#include <QtGlobal>
#include "botphotosize.h"

class LIBQTELEGRAMSHARED_EXPORT BotAnimation : public TelegramBotTypeObject
{
public:
    enum BotAnimationClassType {
        typeTypeAnimation = 0xffa800
    };

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

    void setFileId(const QString &fileId);
    QString fileId() const;

    void setFileName(const QString &fileName);
    QString fileName() const;

    void setFileSize(qint32 fileSize);
    qint32 fileSize() const;

    void setMimeType(const QString &mimeType);
    QString mimeType() const;

    void setThumb(const BotPhotoSize &thumb);
    BotPhotoSize thumb() const;

    void setClassType(BotAnimationClassType classType);
    BotAnimationClassType classType() const;

    QMap<QString, QVariant> toMap() const;
    void fromMap(const QMap<QString, QVariant> &map);
    bool operator ==(const BotAnimation &b) const;
    BotAnimation &operator =(const BotAnimation &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_fileId;
    QString m_fileName;
    qint32 m_fileSize;
    QString m_mimeType;
    BotPhotoSize m_thumb;
    BotAnimationClassType m_classType;
};

Q_DECLARE_METATYPE(BotAnimation)

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

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

#endif // LQTG_BOT_TYPE_BOTANIMATION
