// 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_BOT_TYPE_BOTGAMEHIGHSCORE
#define LQTG_BOT_TYPE_BOTGAMEHIGHSCORE

#include "telegrambottypeobject.h"

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

#include <QDataStream>
#include <QDebug>

#include <QtGlobal>
#include "botuser.h"

class LIBQTELEGRAMSHARED_EXPORT BotGameHighScore : public TelegramBotTypeObject
{
public:
    enum BotGameHighScoreClassType {
        typeType = 0xffa800
    };

    BotGameHighScore(const QMap<QString, QVariant> &map);
    BotGameHighScore(const Null &_null = TelegramBotTypeObject::null);
    BotGameHighScore(const BotGameHighScore &another);
    virtual ~BotGameHighScore();

    void setPosition(qint32 position);
    qint32 position() const;

    void setScore(qint32 score);
    qint32 score() const;

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

    void setClassType(BotGameHighScoreClassType classType);
    BotGameHighScoreClassType classType() const;

    QMap<QString, QVariant> toMap() const;
    void fromMap(const QMap<QString, QVariant> &map);
    bool operator ==(const BotGameHighScore &b) const;
    BotGameHighScore &operator =(const BotGameHighScore &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:
    qint32 m_position;
    qint32 m_score;
    BotUser m_user;
    BotGameHighScoreClassType m_classType;
};

Q_DECLARE_METATYPE(BotGameHighScore)

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

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

#endif // LQTG_BOT_TYPE_BOTGAMEHIGHSCORE
