// 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_TYPE_MESSAGESSAVEDGIFS
#define LQTG_TYPE_MESSAGESSAVEDGIFS

#include "telegramtypeobject.h"

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

#include <QDataStream>

#include <QList>
#include "document.h"
#include <QtGlobal>

class LIBQTELEGRAMSHARED_EXPORT MessagesSavedGifs : public TelegramTypeObject
{
public:
    enum MessagesSavedGifsClassType {
        typeMessagesSavedGifsNotModified = 0xe8025ca2,
        typeMessagesSavedGifs = 0x2e0709a5
    };

    MessagesSavedGifs(MessagesSavedGifsClassType classType = typeMessagesSavedGifsNotModified, InboundPkt *in = 0);
    MessagesSavedGifs(InboundPkt *in);
    MessagesSavedGifs(const Null&);
    MessagesSavedGifs(const MessagesSavedGifs &another);
    virtual ~MessagesSavedGifs();

    void setGifs(const QList<Document> &gifs);
    QList<Document> gifs() const;

    void setHash(qint32 hash);
    qint32 hash() const;

    void setClassType(MessagesSavedGifsClassType classType);
    MessagesSavedGifsClassType classType() const;

    bool fetch(InboundPkt *in);
    bool push(OutboundPkt *out) const;

    QMap<QString, QVariant> toMap() const;
    static MessagesSavedGifs fromMap(const QMap<QString, QVariant> &map);
    static MessagesSavedGifs fromJson(const QString &json);

    bool operator ==(const MessagesSavedGifs &b) const;
    MessagesSavedGifs &operator =(const MessagesSavedGifs &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:
    QList<Document> m_gifs;
    qint32 m_hash;
    MessagesSavedGifsClassType m_classType;
};

Q_DECLARE_METATYPE(MessagesSavedGifs)

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

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

#endif // LQTG_TYPE_MESSAGESSAVEDGIFS
