17 #ifndef MASTODON_CPP_EASY_MENTION_HPP 18 #define MASTODON_CPP_EASY_MENTION_HPP 25 #include "mastodon-cpp.hpp" 26 #include "easy/easy.hpp" 28 #include <mastodon-cpp/mastodon-cpp.hpp> 29 #include <mastodon-cpp/easy/easy.hpp> 33 using std::uint_fast64_t;
34 using std::chrono::system_clock;
53 explicit Mention(
const string &json);
62 virtual const bool valid()
const;
69 const string acct()
const;
76 const uint_fast64_t
id()
const;
83 const string url()
const;
94 #endif // MASTODON_CPP_EASY_MENTION_HPP const string acct() const
Returns acct.
Definition: mention.cpp:43
Mention()
Constructs an empty Mention object.
Definition: mention.cpp:26
virtual const bool valid() const
Returns true if the Entity holds valid data.
Definition: mention.cpp:30
Class to hold mentions.
Definition: mention.hpp:43
const uint_fast64_t id() const
Returns account ID.
Definition: mention.cpp:48
Definition: mastodon-cpp.hpp:52
Base class for all entities.
Definition: easy.hpp:304
const string url() const
Returns the URL of user's profile.
Definition: mention.cpp:53
const string username() const
Returns the username of the account.
Definition: mention.cpp:58