mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-31 10:00:46 +03:00
7621dc0cb0
fixes #204 fixes #255
25 lines
692 B
C++
25 lines
692 B
C++
#pragma once
|
|
|
|
#include <QJsonObject>
|
|
#include <QString>
|
|
#include <QUrl>
|
|
#include <vector>
|
|
|
|
struct Community
|
|
{
|
|
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_; }
|
|
|
|
QUrl avatar_;
|
|
QString name_;
|
|
QString short_description_;
|
|
QString long_description_;
|
|
|
|
std::vector<QString> rooms_;
|
|
};
|