// 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_CHATPARTICIPANT_OBJECT
#define LQTG_TYPE_CHATPARTICIPANT_OBJECT

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

#include <QPointer>

class LIBQTELEGRAMSHARED_EXPORT ChatParticipantObject : public TelegramTypeQObject
{
    Q_OBJECT
    Q_ENUMS(ChatParticipantClassType)
    Q_PROPERTY(qint32 date READ date WRITE setDate NOTIFY dateChanged)
    Q_PROPERTY(qint32 inviterId READ inviterId WRITE setInviterId NOTIFY inviterIdChanged)
    Q_PROPERTY(qint32 userId READ userId WRITE setUserId NOTIFY userIdChanged)
    Q_PROPERTY(ChatParticipant core READ core WRITE setCore NOTIFY coreChanged)
    Q_PROPERTY(quint32 classType READ classType WRITE setClassType NOTIFY classTypeChanged)

public:
    enum ChatParticipantClassType {
        TypeChatParticipant,
        TypeChatParticipantCreator,
        TypeChatParticipantAdmin
    };

    ChatParticipantObject(const ChatParticipant &core, QObject *parent = 0);
    ChatParticipantObject(QObject *parent = 0);
    virtual ~ChatParticipantObject();

    void setDate(qint32 date);
    qint32 date() const;

    void setInviterId(qint32 inviterId);
    qint32 inviterId() const;

    void setUserId(qint32 userId);
    qint32 userId() const;

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

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

    ChatParticipantObject &operator =(const ChatParticipant &b);
    bool operator ==(const ChatParticipant &b) const;

Q_SIGNALS:
    void coreChanged();
    void classTypeChanged();
    void dateChanged();
    void inviterIdChanged();
    void userIdChanged();

private Q_SLOTS:

private:
    ChatParticipant m_core;
};

#endif // LQTG_TYPE_CHATPARTICIPANT_OBJECT
