// 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_ACCOUNTAUTHORIZATIONS_OBJECT
#define LQTG_TYPE_ACCOUNTAUTHORIZATIONS_OBJECT

#include "telegramtypeqobject.h"
#include "telegram/types/accountauthorizations.h"

#include <QPointer>

class LIBQTELEGRAMSHARED_EXPORT AccountAuthorizationsObject : public TelegramTypeQObject
{
    Q_OBJECT
    Q_ENUMS(AccountAuthorizationsClassType)
    Q_PROPERTY(QList<Authorization> authorizations READ authorizations WRITE setAuthorizations NOTIFY authorizationsChanged)
    Q_PROPERTY(AccountAuthorizations core READ core WRITE setCore NOTIFY coreChanged)
    Q_PROPERTY(quint32 classType READ classType WRITE setClassType NOTIFY classTypeChanged)

public:
    enum AccountAuthorizationsClassType {
        TypeAccountAuthorizations
    };

    AccountAuthorizationsObject(const AccountAuthorizations &core, QObject *parent = 0);
    AccountAuthorizationsObject(QObject *parent = 0);
    virtual ~AccountAuthorizationsObject();

    void setAuthorizations(const QList<Authorization> &authorizations);
    QList<Authorization> authorizations() const;

    void setClassType(quint32 classType);
    quint32 classType() const;

    void setCore(const AccountAuthorizations &core);
    AccountAuthorizations core() const;

    AccountAuthorizationsObject &operator =(const AccountAuthorizations &b);
    bool operator ==(const AccountAuthorizations &b) const;

Q_SIGNALS:
    void coreChanged();
    void classTypeChanged();
    void authorizationsChanged();

private Q_SLOTS:

private:
    AccountAuthorizations m_core;
};

#endif // LQTG_TYPE_ACCOUNTAUTHORIZATIONS_OBJECT
