Added Relationship::endorsed() and Relationship::showing_notifications()
This commit is contained in:
parent
c492158f64
commit
ad7ac09ae1
|
@ -54,6 +54,11 @@ const bool Relationship::domain_blocking() const
|
||||||
return get_bool("domain_blocking");
|
return get_bool("domain_blocking");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const bool Relationship::endorsed() const
|
||||||
|
{
|
||||||
|
return get_bool("endorsed");
|
||||||
|
}
|
||||||
|
|
||||||
const bool Relationship::followed_by() const
|
const bool Relationship::followed_by() const
|
||||||
{
|
{
|
||||||
return get_bool("followed_by");
|
return get_bool("followed_by");
|
||||||
|
@ -83,3 +88,8 @@ const bool Relationship::requested() const
|
||||||
{
|
{
|
||||||
return get_bool("requested");
|
return get_bool("requested");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const bool Relationship::showing_notifications() const
|
||||||
|
{
|
||||||
|
return get_bool("showing_notifications");
|
||||||
|
}
|
||||||
|
|
|
@ -74,6 +74,13 @@ namespace Mastodon
|
||||||
*/
|
*/
|
||||||
const bool domain_blocking() const;
|
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
|
* @brief Returns true if the user is being followed by the account
|
||||||
*
|
*
|
||||||
|
@ -115,6 +122,13 @@ namespace Mastodon
|
||||||
* @since before 0.11.0
|
* @since before 0.11.0
|
||||||
*/
|
*/
|
||||||
const bool requested() const;
|
const bool requested() const;
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* @brief Returns true if the user is showing notifications
|
||||||
|
*
|
||||||
|
* @since 0.19.0
|
||||||
|
*/
|
||||||
|
const bool showing_notifications() const;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue