17 #ifndef MASTODON_CPP_EASY_RESULTS_HPP 18 #define MASTODON_CPP_EASY_RESULTS_HPP 25 #include "mastodon-cpp.hpp" 26 #include "easy/easy.hpp" 27 #include "easy/entities/account.hpp" 28 #include "easy/entities/status.hpp" 29 #include "easy/entities/tag.hpp" 31 #include <mastodon-cpp/mastodon-cpp.hpp> 32 #include <mastodon-cpp/easy/easy.hpp> 33 #include <mastodon-cpp/easy/entities/account.hpp> 34 #include <mastodon-cpp/easy/entities/status.hpp> 35 #include <mastodon-cpp/easy/entities/tag.hpp> 57 explicit Results(
const string &json);
66 virtual const bool valid()
const;
73 const std::vector<Account>
accounts()
const;
80 const std::vector<Status>
statuses()
const;
101 [[deprecated(
"Will vanish in 1.0.0, use hashtags_v1() instead")]]
102 const std::vector<string>
hashtags()
const;
106 #endif // MASTODON_CPP_EASY_RESULTS_HPP const std::vector< string > hashtags() const
Alias for hashtags_v1.
Definition: results.cpp:96
const std::vector< Account > accounts() const
Returns an array of matched Accounts.
Definition: results.cpp:43
Results()
Constructs an empty Results object.
Definition: results.cpp:27
const std::vector< Tag > hashtags_v2() const
Returns an array of matched hashtags as Easy::Tag.
Definition: results.cpp:80
const std::vector< string > hashtags_v1() const
Returns an array of matched hashtags as string.
Definition: results.cpp:75
Definition: mastodon-cpp.hpp:52
Base class for all entities.
Definition: easy.hpp:304
const std::vector< Status > statuses() const
Returns an array of matched Statuses.
Definition: results.cpp:59
Class to hold results.
Definition: results.hpp:47
virtual const bool valid() const
Returns true if the Entity holds valid data.
Definition: results.cpp:31