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