// 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_HELPSUPPORT
#define LQTG_TYPE_HELPSUPPORT

#include "telegramtypeobject.h"

#include <QMetaType>
#include <QVariant>
#include "../coretypes.h"

#include <QDataStream>

#include <QString>
#include "user.h"

class LIBQTELEGRAMSHARED_EXPORT HelpSupport : public TelegramTypeObject
{
public:
    enum HelpSupportClassType {
        typeHelpSupport = 0x17c6b5f6
    };

    HelpSupport(HelpSupportClassType classType = typeHelpSupport, InboundPkt *in = 0);
    HelpSupport(InboundPkt *in);
    HelpSupport(const Null&);
    HelpSupport(const HelpSupport &another);
    virtual ~HelpSupport();

    void setPhoneNumber(const QString &phoneNumber);
    QString phoneNumber() const;

    void setUser(const User &user);
    User user() const;

    void setClassType(HelpSupportClassType classType);
    HelpSupportClassType classType() const;

    bool fetch(InboundPkt *in);
    bool push(OutboundPkt *out) const;

    QMap<QString, QVariant> toMap() const;
    static HelpSupport fromMap(const QMap<QString, QVariant> &map);
    static HelpSupport fromJson(const QString &json);

    bool operator ==(const HelpSupport &b) const;
    HelpSupport &operator =(const HelpSupport &b);

    bool operator==(bool stt) const { return isNull() != stt; }
    bool operator!=(bool stt) const { return !operator ==(stt); }

    QByteArray getHash(QCryptographicHash::Algorithm alg = QCryptographicHash::Md5) const;

private:
    QString m_phoneNumber;
    User m_user;
    HelpSupportClassType m_classType;
};

Q_DECLARE_METATYPE(HelpSupport)

QDataStream LIBQTELEGRAMSHARED_EXPORT &operator<<(QDataStream &stream, const HelpSupport &item);
QDataStream LIBQTELEGRAMSHARED_EXPORT &operator>>(QDataStream &stream, HelpSupport &item);

QDebug LIBQTELEGRAMSHARED_EXPORT operator<<(QDebug debug,  const HelpSupport &item);

#endif // LQTG_TYPE_HELPSUPPORT
