Added Easy::account_field_type and Easy::account_fields.
This commit is contained in:
parent
de78019cb3
commit
a98351905b
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user