// 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_CONTACTSRESOLVEDPEER_OBJECT
#define LQTG_TYPE_CONTACTSRESOLVEDPEER_OBJECT

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

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

class LIBQTELEGRAMSHARED_EXPORT ContactsResolvedPeerObject : public TelegramTypeQObject
{
    Q_OBJECT
    Q_ENUMS(ContactsResolvedPeerClassType)
    Q_PROPERTY(QList<Chat> chats READ chats WRITE setChats NOTIFY chatsChanged)
    Q_PROPERTY(PeerObject* peer READ peer WRITE setPeer NOTIFY peerChanged)
    Q_PROPERTY(QList<User> users READ users WRITE setUsers NOTIFY usersChanged)
    Q_PROPERTY(ContactsResolvedPeer core READ core WRITE setCore NOTIFY coreChanged)
    Q_PROPERTY(quint32 classType READ classType WRITE setClassType NOTIFY classTypeChanged)

public:
    enum ContactsResolvedPeerClassType {
        TypeContactsResolvedPeer
    };

    ContactsResolvedPeerObject(const ContactsResolvedPeer &core, QObject *parent = 0);
    ContactsResolvedPeerObject(QObject *parent = 0);
    virtual ~ContactsResolvedPeerObject();

    void setChats(const QList<Chat> &chats);
    QList<Chat> chats() const;

    void setPeer(PeerObject* peer);
    PeerObject* peer() const;

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

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

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

    ContactsResolvedPeerObject &operator =(const ContactsResolvedPeer &b);
    bool operator ==(const ContactsResolvedPeer &b) const;

Q_SIGNALS:
    void coreChanged();
    void classTypeChanged();
    void chatsChanged();
    void peerChanged();
    void usersChanged();

private Q_SLOTS:
    void corePeerChanged();

private:
    QPointer<PeerObject> m_peer;
    ContactsResolvedPeer m_core;
};

#endif // LQTG_TYPE_CONTACTSRESOLVEDPEER_OBJECT
