// 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_DATAJSON_OBJECT
#define LQTG_TYPE_DATAJSON_OBJECT

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

#include <QPointer>

class LIBQTELEGRAMSHARED_EXPORT DataJSONObject : public TelegramTypeQObject
{
    Q_OBJECT
    Q_ENUMS(DataJSONClassType)
    Q_PROPERTY(QString data READ data WRITE setData NOTIFY dataChanged)
    Q_PROPERTY(DataJSON core READ core WRITE setCore NOTIFY coreChanged)
    Q_PROPERTY(quint32 classType READ classType WRITE setClassType NOTIFY classTypeChanged)

public:
    enum DataJSONClassType {
        TypeDataJSON
    };

    DataJSONObject(const DataJSON &core, QObject *parent = 0);
    DataJSONObject(QObject *parent = 0);
    virtual ~DataJSONObject();

    void setData(const QString &data);
    QString data() const;

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

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

    DataJSONObject &operator =(const DataJSON &b);
    bool operator ==(const DataJSON &b) const;

Q_SIGNALS:
    void coreChanged();
    void classTypeChanged();
    void dataChanged();

private Q_SLOTS:

private:
    DataJSON m_core;
};

#endif // LQTG_TYPE_DATAJSON_OBJECT
