aboutsummaryrefslogtreecommitdiffstats
path: root/src/activitypub/apactor.h
blob: 60ef0bf612b8e0084ae24ac18eb97638b748233a (plain)
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
#pragma once

#include "apbase.h"
#include <vector>

// APActors will have an avatar, display name, username and more that will be fetched using the remote instance
class APActor : APBase {
public:
    // Empty actor
    APActor();
    APActor(const QString url);
    ~APActor() {};

    const QString get_url();

    QString get_html_render(HtmlRenderDetails render_info);
    const QString get_plain_render();
private:
    QString object_url;
};

class APActorList : public std::vector<APActor>, APBase {
public:
    QString get_html_render(HtmlRenderDetails render_info);
};