Deprecated return_entity(_vector) and some high-level abstractions.

send_post(), send_toot() and get_notifications().
I don't have the energy to implement and maintain an useful set of high-level
abstractions.
This commit is contained in:
tastytea 2019-10-13 23:56:39 +02:00
parent 5dce94a4a3
commit e1b61b5041
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
3 changed files with 9 additions and 8 deletions

View File

@ -77,10 +77,6 @@ Not included in this list are entities.
==== Return types
* `Mastodon::return_call`: Contains the response from `Mastodon::API` calls.
* `Mastodon::Easy::return_entity`: Contains the response from high-level
functions that return a single `Mastodon::Easy::Entity`.
* `Mastodon::Easy::return_entities_vector`: Contains the response from
high-level functions that return multiple `Mastodon::Easy::Entity`.
==== Other types

View File

@ -167,6 +167,7 @@ namespace Easy
*
* @since 0.100.0
*/
[[deprecated("Will go away in 1.0.0 with no replacement.")]]
const return_entity<Easy::Status> send_post(const Status &status);
/*!
@ -174,6 +175,7 @@ namespace Easy
*
* @since 0.100.0
*/
[[deprecated("Will go away in 1.0.0 with no replacement.")]]
const return_entity<Easy::Status> send_toot(const Status &status);
/*!
@ -187,6 +189,7 @@ namespace Easy
*
* @since 0.100.0
*/
[[deprecated("Will go away in 1.0.0 with no replacement.")]]
const return_entity_vector<Easy::Notification> get_notifications(
const uint16_t limit = 20, const string since_id = "",
const string max_id = "");

View File

@ -36,8 +36,9 @@ namespace Easy
*
* @since 0.100.0
*/
template <typename T>
struct return_entity : return_base
template <typename T> struct
[[deprecated("Will go away in 1.0.0 with no replacement.")]]
return_entity : return_base
{
/*!
* @brief Mastodon::Easy::Entity
@ -107,8 +108,9 @@ namespace Easy
*
* @since 0.100.0
*/
template <typename T>
struct return_entity_vector : return_base
template <typename T> struct
[[deprecated("Will go away in 1.0.0 with no replacement.")]]
return_entity_vector : return_base
{
/*!
* @brief std::vector of Mastodon::Easy::Entity.