// 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_CHANNELSCHANNELPARTICIPANT_OBJECT
#define LQTG_TYPE_CHANNELSCHANNELPARTICIPANT_OBJECT

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

#include <QPointer>
#include "channelparticipantobject.h"

class LIBQTELEGRAMSHARED_EXPORT ChannelsChannelParticipantObject : public TelegramTypeQObject
{
    Q_OBJECT
    Q_ENUMS(ChannelsChannelParticipantClassType)
    Q_PROPERTY(ChannelParticipantObject* participant READ participant WRITE setParticipant NOTIFY participantChanged)
    Q_PROPERTY(QList<User> users READ users WRITE setUsers NOTIFY usersChanged)
    Q_PROPERTY(ChannelsChannelParticipant core READ core WRITE setCore NOTIFY coreChanged)
    Q_PROPERTY(quint32 classType READ classType WRITE setClassType NOTIFY classTypeChanged)

public:
    enum ChannelsChannelParticipantClassType {
        TypeChannelsChannelParticipant
    };

    ChannelsChannelParticipantObject(const ChannelsChannelParticipant &core, QObject *parent = 0);
    ChannelsChannelParticipantObject(QObject *parent = 0);
    virtual ~ChannelsChannelParticipantObject();

    void setParticipant(ChannelParticipantObject* participant);
    ChannelParticipantObject* participant() const;

    void setUsers(const QList<User> &users);
    QList<User> users() const;

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

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

    ChannelsChannelParticipantObject &operator =(const ChannelsChannelParticipant &b);
    bool operator ==(const ChannelsChannelParticipant &b) const;

Q_SIGNALS:
    void coreChanged();
    void classTypeChanged();
    void participantChanged();
    void usersChanged();

private Q_SLOTS:
    void coreParticipantChanged();

private:
    QPointer<ChannelParticipantObject> m_participant;
    ChannelsChannelParticipant m_core;
};

#endif // LQTG_TYPE_CHANNELSCHANNELPARTICIPANT_OBJECT
