17 #ifndef MASTODON_CPP_EASY_MENTION_HPP 18 #define MASTODON_CPP_EASY_MENTION_HPP 23 #include "../../mastodon-cpp.hpp" 24 #include "../entity.hpp" 28 using std::chrono::system_clock;
44 virtual bool valid()
const override;
51 const string acct()
const;
58 const string id()
const;
65 const string url()
const;
77 #endif // MASTODON_CPP_EASY_MENTION_HPP const string acct() const
Returns acct.
Definition: mention.cpp:33
Entity()
Constructs an empty Entity object.
Definition: entity.cpp:43
Class to hold mentions.
Definition: mention.hpp:39
const string id() const
Returns account ID.
Definition: mention.cpp:38
virtual bool valid() const override
Returns true if the Entity holds valid data.
Definition: mention.cpp:22
Collection of things to interface with server software that implements the Mastodon API.
Definition: mastodon-cpp.hpp:47
Base class for all entities.
Definition: entity.hpp:36
const string url() const
Returns the URL of user's profile.
Definition: mention.cpp:43
const string username() const
Returns the username of the account.
Definition: mention.cpp:48