17 #ifndef MASTODON_CPP_EASY_FILTER_HPP 18 #define MASTODON_CPP_EASY_FILTER_HPP 22 #include "../../mastodon-cpp.hpp" 23 #include "../entity.hpp" 41 virtual bool valid()
const override;
48 const string id()
const;
55 const string phrase()
const;
62 const vector<Easy::context_type>
context()
const;
92 #endif // MASTODON_CPP_EASY_FILTER_HPP Entity()
Constructs an empty Entity object.
Definition: entity.cpp:43
const string phrase() const
Returns the phrase to filter.
Definition: filter.cpp:42
const Easy::time_type expires_at() const
Returns the expiration time of the filter.
Definition: filter.cpp:74
Type for time. Converts to time_point and string.
Definition: types_easy.hpp:150
const string id() const
Returns the id of the filter.
Definition: filter.cpp:37
Class to hold filters.
Definition: filter.hpp:36
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 vector< Easy::context_type > context() const
Returns the contexts in which to filter.
Definition: filter.cpp:47
virtual bool valid() const override
Returns true if the Entity holds valid data.
Definition: filter.cpp:25
bool whole_word() const
Returns if the filter should only be applied if it matches the whole word.
Definition: filter.cpp:84
bool irreversible() const
Returns if the phrase should disappear irreversibly.
Definition: filter.cpp:79