2018-01-09 16:07:32 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QJsonObject>
|
|
|
|
#include <QString>
|
|
|
|
#include <QUrl>
|
2018-04-28 15:27:12 +03:00
|
|
|
#include <vector>
|
2018-01-09 16:07:32 +03:00
|
|
|
|
2018-04-28 15:27:12 +03:00
|
|
|
struct Community
|
2018-01-09 16:07:32 +03:00
|
|
|
{
|
|
|
|
void parseProfile(const QJsonObject &profile);
|
|
|
|
void parseRooms(const QJsonObject &rooms);
|
|
|
|
|
2018-01-24 21:46:37 +03:00
|
|
|
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_; }
|
2018-01-09 16:07:32 +03:00
|
|
|
|
|
|
|
QUrl avatar_;
|
|
|
|
QString name_;
|
|
|
|
QString short_description_;
|
|
|
|
QString long_description_;
|
|
|
|
|
2018-01-24 21:46:37 +03:00
|
|
|
std::vector<QString> rooms_;
|
2018-01-09 16:07:32 +03:00
|
|
|
};
|