// 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_BOTLOCATION
#define LQTG_BOT_TYPE_BOTLOCATION

#include "telegrambottypeobject.h"

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

#include <QDataStream>
#include <QDebug>

#include <QtGlobal>

class LIBQTELEGRAMSHARED_EXPORT BotLocation : public TelegramBotTypeObject
{
public:
    enum BotLocationClassType {
        typeTypeLocation = 0xffa800
    };

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

    void setLatitude(qreal latitude);
    qreal latitude() const;

    void setLongitude(qreal longitude);
    qreal longitude() const;

    void setClassType(BotLocationClassType classType);
    BotLocationClassType classType() const;

    QMap<QString, QVariant> toMap() const;
    void fromMap(const QMap<QString, QVariant> &map);
    bool operator ==(const BotLocation &b) const;
    BotLocation &operator =(const BotLocation &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:
    qreal m_latitude;
    qreal m_longitude;
    BotLocationClassType m_classType;
};

Q_DECLARE_METATYPE(BotLocation)

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

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

#endif // LQTG_BOT_TYPE_BOTLOCATION
