// 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_INPUTENCRYPTEDCHAT
#define LQTG_TYPE_INPUTENCRYPTEDCHAT

#include "telegramtypeobject.h"

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

#include <QDataStream>

#include <QtGlobal>

class LIBQTELEGRAMSHARED_EXPORT InputEncryptedChat : public TelegramTypeObject
{
public:
    enum InputEncryptedChatClassType {
        typeInputEncryptedChat = 0xf141b5e1
    };

    InputEncryptedChat(InputEncryptedChatClassType classType = typeInputEncryptedChat, InboundPkt *in = 0);
    InputEncryptedChat(InboundPkt *in);
    InputEncryptedChat(const Null&);
    InputEncryptedChat(const InputEncryptedChat &another);
    virtual ~InputEncryptedChat();

    void setAccessHash(qint64 accessHash);
    qint64 accessHash() const;

    void setChatId(qint32 chatId);
    qint32 chatId() const;

    void setClassType(InputEncryptedChatClassType classType);
    InputEncryptedChatClassType classType() const;

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

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

    bool operator ==(const InputEncryptedChat &b) const;
    InputEncryptedChat &operator =(const InputEncryptedChat &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:
    qint64 m_accessHash;
    qint32 m_chatId;
    InputEncryptedChatClassType m_classType;
};

Q_DECLARE_METATYPE(InputEncryptedChat)

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

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

#endif // LQTG_TYPE_INPUTENCRYPTEDCHAT
