From a98351905b2d8cf21a62f6430411a5148a9d4256 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 30 Apr 2019 23:30:17 +0200 Subject: [PATCH] Added Easy::account_field_type and Easy::account_fields. --- README.adoc | 1 + src/easy/types_easy.hpp | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/README.adoc b/README.adoc index 3dd2a3e..73858d6 100644 --- a/README.adoc +++ b/README.adoc @@ -96,6 +96,7 @@ and . push subscriptions. * `Mastodon::Easy::time`: Type for time, can be converted to `time_point` and `string`. +* `Mastodon::Easy::Account::account_fields`: Type for fields in accounts. === Error codes diff --git a/src/easy/types_easy.hpp b/src/easy/types_easy.hpp index 7473985..7b01051 100644 --- a/src/easy/types_easy.hpp +++ b/src/easy/types_easy.hpp @@ -195,6 +195,27 @@ namespace Easy const string strtime(const string &format, const bool &local = true) const; }; + + /*! + * @brief Describes an account-field. + * + * @since 0.106.0 + */ + typedef struct account_field_type + { + const string name; + const string value; + Easy::time verified_at; + } account_field_type; + + /*! + * @brief Vector of Easy::account_field_type. + * + * Used in Easy::Account. + * + * @since 0.106.0 + */ + typedef vector account_fields; } } #endif // MASTODON_CPP_EASY_TYPES_EASY_HPP