17 #ifndef MASTODON_CPP_EASY_STATUS_HPP 18 #define MASTODON_CPP_EASY_STATUS_HPP 26 #include "mastodon-cpp.hpp" 27 #include "easy/entity.hpp" 28 #include "easy/entities/account.hpp" 29 #include "easy/entities/emoji.hpp" 30 #include "easy/entities/attachment.hpp" 31 #include "easy/entities/mention.hpp" 32 #include "easy/entities/tag.hpp" 33 #include "easy/entities/application.hpp" 34 #include "easy/entities/card.hpp" 36 #include <mastodon-cpp/mastodon-cpp.hpp> 37 #include <mastodon-cpp/easy/entity.hpp> 38 #include <mastodon-cpp/easy/entities/account.hpp> 39 #include <mastodon-cpp/easy/entities/emoji.hpp> 40 #include <mastodon-cpp/easy/entities/attachment.hpp> 41 #include <mastodon-cpp/easy/entities/mention.hpp> 42 #include <mastodon-cpp/easy/entities/tag.hpp> 43 #include <mastodon-cpp/easy/entities/application.hpp> 44 #include <mastodon-cpp/easy/entities/card.hpp> 64 virtual bool valid()
const override;
113 const std::vector<Emoji>
emojis()
const;
134 const string id()
const;
191 const std::vector<Mention>
mentions()
const;
268 const std::vector<Tag>
tags()
const;
275 const string uri()
const;
282 const string url()
const;
301 #endif // MASTODON_CPP_EASY_STATUS_HPP Entity()
Constructs an empty Entity object.
Definition: entity.cpp:42
bool sensitive() const
Returns true if the attachments should be hidden by default.
Definition: status.cpp:234
uint64_t reblogs_count() const
Returns the number of reblogs for the status.
Definition: status.cpp:224
Class to hold cards.
Definition: card.hpp:44
const string url() const
Returns the URL to the status page.
Definition: status.cpp:276
const std::vector< Emoji > emojis() const
Returns an array of emojis.
Definition: status.cpp:97
uint64_t favourites_count() const
Returns the number of favourites.
Definition: status.cpp:117
const std::vector< Attachment > media_attachments() const
Returns the attachments.
Definition: status.cpp:154
const string language() const
Returns the language of the status.
Definition: status.cpp:143
uint64_t replies_count() const
Returns the number of replies for the status.
Definition: status.cpp:229
Class to hold accounts.
Definition: account.hpp:46
Class to hold statuses.
Definition: status.hpp:59
bool pinned() const
Returns true if the status is pinned.
Definition: status.cpp:203
const Card card() const
Returns card.
Definition: status.cpp:70
visibility_type visibility() const
Returns the visibility of the status.
Definition: status.cpp:281
const string content() const
Returns content of status.
Definition: status.cpp:86
Collection of things to interface with server software that implements the Mastodon API...
Definition: mastodon-cpp.hpp:52
Base class for all entities.
Definition: entity.hpp:41
const std::vector< Tag > tags() const
Returns the tags.
Definition: status.cpp:256
const Easy::time created_at() const
Returns time of creation.
Definition: status.cpp:81
const Account account() const
Returns an array of matched accounts.
Definition: status.cpp:48
bool muted() const
Returns true if the user muted the conversation.
Definition: status.cpp:198
const string uri() const
Returns the Fediverse-unique resource ID.
Definition: status.cpp:271
bool reblogged() const
Returns true if the user has reblogged the status.
Definition: status.cpp:219
const string in_reply_to_account_id() const
Returns the ID of the account it replies to.
Definition: status.cpp:138
Type for time. Converts to time_point and string.
Definition: types_easy.hpp:141
const Application application() const
Returns application from which the status was posted.
Definition: status.cpp:59
const string spoiler_text() const
Returns the spoiler text.
Definition: status.cpp:245
visibility_type
Describes visibility of posts.
Definition: types_easy.hpp:53
const std::vector< Mention > mentions() const
Returns the mentions.
Definition: status.cpp:183
virtual bool valid() const override
Returns true if the Entity holds valid data.
Definition: status.cpp:25
Class to hold applications.
Definition: application.hpp:42
bool favourited() const
Returns true if the user has favourited the status.
Definition: status.cpp:112
const string in_reply_to_id() const
Returns the ID of the status it replies to.
Definition: status.cpp:127
const string id() const
Returns the ID of the status.
Definition: status.cpp:122
const Status reblog() const
Returns the reblogged Status.
Definition: status.cpp:208