summary refs log tree commit diff
path: root/include/Community.h
blob: 5b759e55e2be9cafe56600d30f2890212f070380 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#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_;
};