// 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_PAYMENTREQUESTEDINFO_OBJECT
#define LQTG_TYPE_PAYMENTREQUESTEDINFO_OBJECT

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

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

class LIBQTELEGRAMSHARED_EXPORT PaymentRequestedInfoObject : public TelegramTypeQObject
{
    Q_OBJECT
    Q_ENUMS(PaymentRequestedInfoClassType)
    Q_PROPERTY(QString email READ email WRITE setEmail NOTIFY emailChanged)
    Q_PROPERTY(qint32 flags READ flags WRITE setFlags NOTIFY flagsChanged)
    Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
    Q_PROPERTY(QString phone READ phone WRITE setPhone NOTIFY phoneChanged)
    Q_PROPERTY(PostAddressObject* shippingAddress READ shippingAddress WRITE setShippingAddress NOTIFY shippingAddressChanged)
    Q_PROPERTY(PaymentRequestedInfo core READ core WRITE setCore NOTIFY coreChanged)
    Q_PROPERTY(quint32 classType READ classType WRITE setClassType NOTIFY classTypeChanged)

public:
    enum PaymentRequestedInfoClassType {
        TypePaymentRequestedInfo
    };

    PaymentRequestedInfoObject(const PaymentRequestedInfo &core, QObject *parent = 0);
    PaymentRequestedInfoObject(QObject *parent = 0);
    virtual ~PaymentRequestedInfoObject();

    void setEmail(const QString &email);
    QString email() const;

    void setFlags(qint32 flags);
    qint32 flags() const;

    void setName(const QString &name);
    QString name() const;

    void setPhone(const QString &phone);
    QString phone() const;

    void setShippingAddress(PostAddressObject* shippingAddress);
    PostAddressObject* shippingAddress() const;

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

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

    PaymentRequestedInfoObject &operator =(const PaymentRequestedInfo &b);
    bool operator ==(const PaymentRequestedInfo &b) const;

Q_SIGNALS:
    void coreChanged();
    void classTypeChanged();
    void emailChanged();
    void flagsChanged();
    void nameChanged();
    void phoneChanged();
    void shippingAddressChanged();

private Q_SLOTS:
    void coreShippingAddressChanged();

private:
    QPointer<PostAddressObject> m_shippingAddress;
    PaymentRequestedInfo m_core;
};

#endif // LQTG_TYPE_PAYMENTREQUESTEDINFO_OBJECT
