// 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_MESSAGESFOUNDGIFS
#define LQTG_TYPE_MESSAGESFOUNDGIFS

#include "telegramtypeobject.h"

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

#include <QDataStream>

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

class LIBQTELEGRAMSHARED_EXPORT MessagesFoundGifs : public TelegramTypeObject
{
public:
    enum MessagesFoundGifsClassType {
        typeMessagesFoundGifs = 0x450a1c0a
    };

    MessagesFoundGifs(MessagesFoundGifsClassType classType = typeMessagesFoundGifs, InboundPkt *in = 0);
    MessagesFoundGifs(InboundPkt *in);
    MessagesFoundGifs(const Null&);
    MessagesFoundGifs(const MessagesFoundGifs &another);
    virtual ~MessagesFoundGifs();

    void setNextOffset(qint32 nextOffset);
    qint32 nextOffset() const;

    void setResults(const QList<FoundGif> &results);
    QList<FoundGif> results() const;

    void setClassType(MessagesFoundGifsClassType classType);
    MessagesFoundGifsClassType classType() const;

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

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

    bool operator ==(const MessagesFoundGifs &b) const;
    MessagesFoundGifs &operator =(const MessagesFoundGifs &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:
    qint32 m_nextOffset;
    QList<FoundGif> m_results;
    MessagesFoundGifsClassType m_classType;
};

Q_DECLARE_METATYPE(MessagesFoundGifs)

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

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

#endif // LQTG_TYPE_MESSAGESFOUNDGIFS
