// 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_PAYMENTSPAYMENTRESULT_OBJECT
#define LQTG_TYPE_PAYMENTSPAYMENTRESULT_OBJECT

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

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

class LIBQTELEGRAMSHARED_EXPORT PaymentsPaymentResultObject : public TelegramTypeQObject
{
    Q_OBJECT
    Q_ENUMS(PaymentsPaymentResultClassType)
    Q_PROPERTY(UpdatesTypeObject* updates READ updates WRITE setUpdates NOTIFY updatesChanged)
    Q_PROPERTY(QString url READ url WRITE setUrl NOTIFY urlChanged)
    Q_PROPERTY(PaymentsPaymentResult core READ core WRITE setCore NOTIFY coreChanged)
    Q_PROPERTY(quint32 classType READ classType WRITE setClassType NOTIFY classTypeChanged)

public:
    enum PaymentsPaymentResultClassType {
        TypePaymentsPaymentResult,
        TypePaymentsPaymentVerficationNeeded
    };

    PaymentsPaymentResultObject(const PaymentsPaymentResult &core, QObject *parent = 0);
    PaymentsPaymentResultObject(QObject *parent = 0);
    virtual ~PaymentsPaymentResultObject();

    void setUpdates(UpdatesTypeObject* updates);
    UpdatesTypeObject* updates() const;

    void setUrl(const QString &url);
    QString url() const;

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

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

    PaymentsPaymentResultObject &operator =(const PaymentsPaymentResult &b);
    bool operator ==(const PaymentsPaymentResult &b) const;

Q_SIGNALS:
    void coreChanged();
    void classTypeChanged();
    void updatesChanged();
    void urlChanged();

private Q_SLOTS:
    void coreUpdatesChanged();

private:
    QPointer<UpdatesTypeObject> m_updates;
    PaymentsPaymentResult m_core;
};

#endif // LQTG_TYPE_PAYMENTSPAYMENTRESULT_OBJECT
