Added Relationship::endorsed() and Relationship::showing_notifications()

This commit is contained in:
tastytea 2018-11-17 20:47:38 +01:00
parent c492158f64
commit ad7ac09ae1
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 24 additions and 0 deletions

View File

@ -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");
}

View File

@ -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;
};
}