Marked members of Easy::Tag::History const.
This commit is contained in:
parent
a5e7f12fd1
commit
2a7d02fba8
|
@ -70,12 +70,12 @@ bool Tag::History::valid() const
|
||||||
return Entity::check_valid(attributes);
|
return Entity::check_valid(attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t Tag::History::accounts()
|
uint64_t Tag::History::accounts() const
|
||||||
{
|
{
|
||||||
return stouint64(get_string("accounts"));
|
return stouint64(get_string("accounts"));
|
||||||
}
|
}
|
||||||
|
|
||||||
const Easy::time_type Tag::History::day()
|
const Easy::time_type Tag::History::day() const
|
||||||
{
|
{
|
||||||
const Json::Value node = get("day");
|
const Json::Value node = get("day");
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ const Easy::time_type Tag::History::day()
|
||||||
return Easy::time_type();
|
return Easy::time_type();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t Tag::History::uses()
|
uint64_t Tag::History::uses() const
|
||||||
{
|
{
|
||||||
return stouint64(get_string("uses"));
|
return stouint64(get_string("uses"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,21 +55,21 @@ namespace Easy
|
||||||
*
|
*
|
||||||
* @since 0.16.0
|
* @since 0.16.0
|
||||||
*/
|
*/
|
||||||
uint64_t accounts();
|
uint64_t accounts() const;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief Returns the day.
|
* @brief Returns the day.
|
||||||
*
|
*
|
||||||
* @since 0.16.0
|
* @since 0.16.0
|
||||||
*/
|
*/
|
||||||
const Easy::time_type day();
|
const Easy::time_type day() const;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief Returns the number of accounts using that hashtag.
|
* @brief Returns the number of statuses with that hashtag.
|
||||||
*
|
*
|
||||||
* @since 0.16.0
|
* @since 0.16.0
|
||||||
*/
|
*/
|
||||||
uint64_t uses();
|
uint64_t uses() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
using Entity::Entity;
|
using Entity::Entity;
|
||||||
|
|
Reference in New Issue