// 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_USERSTATUS_OBJECT
#define LQTG_TYPE_USERSTATUS_OBJECT

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

#include <QPointer>

class LIBQTELEGRAMSHARED_EXPORT UserStatusObject : public TelegramTypeQObject
{
    Q_OBJECT
    Q_ENUMS(UserStatusClassType)
    Q_PROPERTY(qint32 expires READ expires WRITE setExpires NOTIFY expiresChanged)
    Q_PROPERTY(qint32 wasOnline READ wasOnline WRITE setWasOnline NOTIFY wasOnlineChanged)
    Q_PROPERTY(UserStatus core READ core WRITE setCore NOTIFY coreChanged)
    Q_PROPERTY(quint32 classType READ classType WRITE setClassType NOTIFY classTypeChanged)

public:
    enum UserStatusClassType {
        TypeUserStatusEmpty,
        TypeUserStatusOnline,
        TypeUserStatusOffline,
        TypeUserStatusRecently,
        TypeUserStatusLastWeek,
        TypeUserStatusLastMonth
    };

    UserStatusObject(const UserStatus &core, QObject *parent = 0);
    UserStatusObject(QObject *parent = 0);
    virtual ~UserStatusObject();

    void setExpires(qint32 expires);
    qint32 expires() const;

    void setWasOnline(qint32 wasOnline);
    qint32 wasOnline() const;

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

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

    UserStatusObject &operator =(const UserStatus &b);
    bool operator ==(const UserStatus &b) const;

Q_SIGNALS:
    void coreChanged();
    void classTypeChanged();
    void expiresChanged();
    void wasOnlineChanged();

private Q_SLOTS:

private:
    UserStatus m_core;
};

#endif // LQTG_TYPE_USERSTATUS_OBJECT
