diff options
Diffstat (limited to 'src/activitypub/apactor.h')
-rw-r--r-- | src/activitypub/apactor.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/activitypub/apactor.h b/src/activitypub/apactor.h new file mode 100644 index 0000000..60ef0bf --- /dev/null +++ b/src/activitypub/apactor.h @@ -0,0 +1,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); +}; |