mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 03:58:49 +03:00
29 lines
744 B
C++
29 lines
744 B
C++
#pragma once
|
|
|
|
#include <QJsonObject>
|
|
#include <QObject>
|
|
#include <QString>
|
|
#include <QUrl>
|
|
|
|
class Community : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
void parseProfile(const QJsonObject &profile);
|
|
void parseRooms(const QJsonObject &rooms);
|
|
|
|
QUrl getAvatar() const { return avatar_; }
|
|
QString getName() const { return name_; }
|
|
QString getShortDescription() const { return short_description_; }
|
|
QString getLongDescription() const { return long_description_; }
|
|
std::vector<QString> getRoomList() const { return rooms_; }
|
|
|
|
private:
|
|
QUrl avatar_;
|
|
QString name_;
|
|
QString short_description_;
|
|
QString long_description_;
|
|
|
|
std::vector<QString> rooms_;
|
|
};
|