Added Easy::account_field_type and Easy::account_fields.

This commit is contained in:
tastytea 2019-04-30 23:30:17 +02:00
parent de78019cb3
commit a98351905b
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 22 additions and 0 deletions

View File

@ -96,6 +96,7 @@ and <https://doc.schlomp.space/mastodon-cpp/namespaceMastodon_1_1Easy.html>.
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

View File

@ -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_field_type> account_fields;
}
}
#endif // MASTODON_CPP_EASY_TYPES_EASY_HPP