diff --git a/src/easy/entities/relationship.cpp b/src/easy/entities/relationship.cpp index 58c3f31..3110778 100644 --- a/src/easy/entities/relationship.cpp +++ b/src/easy/entities/relationship.cpp @@ -54,6 +54,11 @@ const bool Relationship::domain_blocking() const return get_bool("domain_blocking"); } +const bool Relationship::endorsed() const +{ + return get_bool("endorsed"); +} + const bool Relationship::followed_by() const { return get_bool("followed_by"); @@ -83,3 +88,8 @@ const bool Relationship::requested() const { return get_bool("requested"); } + +const bool Relationship::showing_notifications() const +{ + return get_bool("showing_notifications"); +} diff --git a/src/easy/entities/relationship.hpp b/src/easy/entities/relationship.hpp index 5754bfc..58fbf71 100644 --- a/src/easy/entities/relationship.hpp +++ b/src/easy/entities/relationship.hpp @@ -74,6 +74,13 @@ namespace Mastodon */ const bool domain_blocking() const; + /*! + * @brief Returns true if the account is endorsed by the user + * + * @since 0.19.0 + */ + const bool endorsed() const; + /*! * @brief Returns true if the user is being followed by the account * @@ -115,6 +122,13 @@ namespace Mastodon * @since before 0.11.0 */ const bool requested() const; + + /*! + * @brief Returns true if the user is showing notifications + * + * @since 0.19.0 + */ + const bool showing_notifications() const; }; }