Added Status::replies_count()

This commit is contained in:
tastytea 2018-11-17 20:32:36 +01:00
parent d79fbc212b
commit a8e27d7f5d
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 12 additions and 0 deletions

View File

@ -225,6 +225,11 @@ const uint_fast64_t Status::reblogs_count() const
return get_uint64("reblogs_count");
}
const uint_fast64_t Status::replies_count() const
{
return get_uint64("replies_count");
}
const bool Status::sensitive() const
{
return get_bool("sensitive");

View File

@ -230,6 +230,13 @@ namespace Mastodon
*/
const uint_fast64_t reblogs_count() const;
/*!
* @brief Returns the number of replies for the status
*
* @since 0.19.0
*/
const uint_fast64_t replies_count() const;
/*!
* @brief Returns true if the attachments should be hidden by default
*