// 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_BOTVENUE
#define LQTG_BOT_TYPE_BOTVENUE

#include "telegrambottypeobject.h"

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

#include <QDataStream>
#include <QDebug>

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

class LIBQTELEGRAMSHARED_EXPORT BotVenue : public TelegramBotTypeObject
{
public:
    enum BotVenueClassType {
        typeTypeVenue = 0xffa800
    };

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

    void setAddress(const QString &address);
    QString address() const;

    void setFoursquareId(const QString &foursquareId);
    QString foursquareId() const;

    void setLocation(const BotLocation &location);
    BotLocation location() const;

    void setTitle(const QString &title);
    QString title() const;

    void setClassType(BotVenueClassType classType);
    BotVenueClassType classType() const;

    QMap<QString, QVariant> toMap() const;
    void fromMap(const QMap<QString, QVariant> &map);
    bool operator ==(const BotVenue &b) const;
    BotVenue &operator =(const BotVenue &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_address;
    QString m_foursquareId;
    BotLocation m_location;
    QString m_title;
    BotVenueClassType m_classType;
};

Q_DECLARE_METATYPE(BotVenue)

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

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

#endif // LQTG_BOT_TYPE_BOTVENUE
