17 #ifndef MASTODON_CPP_EASY_ACCOUNT_HPP 18 #define MASTODON_CPP_EASY_ACCOUNT_HPP 26 #include "mastodon-cpp.hpp" 27 #include "easy/easy.hpp" 29 #include <mastodon-cpp/mastodon-cpp.hpp> 30 #include <mastodon-cpp/easy/easy.hpp> 34 using std::uint_fast64_t;
35 using std::chrono::system_clock;
50 explicit Account(
const string &json);
63 const string acct()
const;
68 const string avatar()
const;
78 const system_clock::time_point
created_at()
const;
98 const string header()
const;
108 const uint_fast64_t
id()
const;
113 const bool locked()
const;
129 const string note()
const;
154 const string url()
const;
163 #endif // MASTODON_CPP_EASY_ACCOUNT_HPP const string avatar() const
Returns URL of avatar.
Definition: account.cpp:36
const uint_fast64_t statuses_count() const
Returns number of statuses.
Definition: account.cpp:138
const string header() const
Returns URL of header image.
Definition: account.cpp:66
const system_clock::time_point created_at() const
Returns time of creation.
Definition: account.cpp:46
const string avatar_static() const
Returns URL of static avatar.
Definition: account.cpp:41
const visibility_type privacy() const
Returns default privacy of new toots.
Definition: account.cpp:117
const string note_plain() const
Returns plaintext version of note.
Definition: account.cpp:112
const string acct() const
Returns username.
Definition: account.cpp:31
const bool has_moved() const
Returns true if the account has been moved.
Definition: account.cpp:86
const uint_fast64_t followers_count() const
Returns number of followers.
Definition: account.cpp:56
const string note() const
Returns note.
Definition: account.cpp:107
const string header_static() const
Returns URL of static header image.
Definition: account.cpp:71
visibility_type
Describes visibility of toots.
Definition: easy.hpp:61
const uint_fast64_t id() const
Returns account-ID.
Definition: account.cpp:76
const string username() const
Returns username (without )
Definition: account.cpp:148
const bool locked() const
Returns true if the account is locked.
Definition: account.cpp:81
const string display_name() const
Returns display name.
Definition: account.cpp:51
Class to hold accounts.
Definition: account.hpp:42
const Account moved() const
If the owner decided to switch accounts, new account is in this attribute.
Definition: account.cpp:96
const bool sensitive() const
Returns if media is marked as sensitive by default.
Definition: account.cpp:133
Definition: mastodon-cpp.hpp:51
Base class for all entities.
Definition: easy.hpp:225
const uint_fast64_t following_count() const
Returns number of people this account follows.
Definition: account.cpp:61
Account()
Constructs an empty Account object.
Definition: account.cpp:27
const string url() const
Returns URL of the profile.
Definition: account.cpp:143