Updated Easy::Emoji.

Added visible_in_picker().
This commit is contained in:
tastytea 2019-05-10 22:21:08 +02:00
parent 920421edf1
commit 26f43a1682
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 20 additions and 8 deletions

View File

@ -45,3 +45,8 @@ const string Emoji::url() const
{
return get_string("url");
}
bool Emoji::visible_in_picker() const
{
return get_bool("visible_in_picker");
}

View File

@ -35,9 +35,9 @@ namespace Mastodon
namespace Easy
{
/*!
* @brief Class to hold emojis
* @brief Class to hold emojis.
*
* @since before 0.11.0
* @since before 0.11.0
*/
class Emoji : public Entity
{
@ -47,25 +47,32 @@ namespace Easy
virtual bool valid() const override;
/*!
* @brief Returns the shortcode of the emoji
* @brief Returns the shortcode of the emoji.
*
* @since before 0.11.0
* @since before 0.11.0
*/
const string shortcode() const;
/*!
* @brief Returns the URL to the emoji static image
* @brief Returns the URL to the emoji static image.
*
* @since before 0.11.0
* @since before 0.11.0
*/
const string static_url() const;
/*!
* @brief Returns the URL to the emoji image
* @brief Returns the URL to the emoji image.
*
* @since before 0.11.0
* @since before 0.11.0
*/
const string url() const;
/*!
* @brief Returns if the emoji is visible in the picker.
*
* @since 0.106.0
*/
bool visible_in_picker() const;
};
}
}