// 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_BOTUSERPROFILEPHOTOS
#define LQTG_BOT_TYPE_BOTUSERPROFILEPHOTOS

#include "telegrambottypeobject.h"

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

#include <QDataStream>
#include <QDebug>

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

class LIBQTELEGRAMSHARED_EXPORT BotUserProfilePhotos : public TelegramBotTypeObject
{
public:
    enum BotUserProfilePhotosClassType {
        typeTypeUserProfilePhotos = 0xffa800
    };

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

    void setPhotos(const QList<QList<BotPhotoSize>> &photos);
    QList<QList<BotPhotoSize>> photos() const;

    void setTotalCount(qint32 totalCount);
    qint32 totalCount() const;

    void setClassType(BotUserProfilePhotosClassType classType);
    BotUserProfilePhotosClassType classType() const;

    QMap<QString, QVariant> toMap() const;
    void fromMap(const QMap<QString, QVariant> &map);
    bool operator ==(const BotUserProfilePhotos &b) const;
    BotUserProfilePhotos &operator =(const BotUserProfilePhotos &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<QList<BotPhotoSize>> m_photos;
    qint32 m_totalCount;
    BotUserProfilePhotosClassType m_classType;
};

Q_DECLARE_METATYPE(BotUserProfilePhotos)

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

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

#endif // LQTG_BOT_TYPE_BOTUSERPROFILEPHOTOS
