17 #ifndef MASTODON_CPP_EASY_TYPES_EASY_HPP 18 #define MASTODON_CPP_EASY_TYPES_EASY_HPP 26 using std::chrono::system_clock;
131 [[deprecated(
"Replaced by Mastodon::Easy::stream_event_type")]]
142 bool pushreq =
false;
152 system_clock::time_point timepoint = system_clock::time_point();
154 operator const system_clock::time_point()
const;
161 operator const string()
const;
168 friend std::ostream &
operator <<(std::ostream &out,
190 const string strtime(
const string &format,
191 const bool &local =
true)
const;
194 [[deprecated(
"Replaced by Mastodon::Easy::time_type")]]
216 string streaming_api;
224 uint64_t user_count = 0;
225 uint64_t status_count = 0;
226 uint64_t domain_count = 0;
235 uint64_t votes_count = 0;
239 #endif // MASTODON_CPP_EASY_TYPES_EASY_HPP Class to hold the Link-header.
Definition: easy.hpp:54
Class to hold notifications.
Definition: notification.hpp:40
Type for time. Converts to time_point and string.
Definition: types_easy.hpp:150
Class to hold mentions.
Definition: mention.hpp:39
Statistics returned by Instance::stats().
Definition: types_easy.hpp:222
Used for stream events.
Definition: types_easy.hpp:125
struct Mastodon::Easy::urls_type urls_type
URLs returned by Instance::urls().
Describes an account-field.
Definition: types_easy.hpp:202
struct Mastodon::Easy::alert_type alert_type
Type of notification and 'push is requested or not'.
Collection of things to interface with server software that implements the Mastodon API.
Definition: mastodon-cpp.hpp:47
struct Mastodon::Easy::poll_options_type poll_options_type
Poll options returned by Poll::options().
context_type
Describes the context.
Definition: types_easy.hpp:111
struct Mastodon::Easy::account_field_type account_field_type
Describes an account-field.
notification_type
Describes the notification type.
Definition: types_easy.hpp:97
URLs returned by Instance::urls().
Definition: types_easy.hpp:214
struct Mastodon::Easy::stats_type stats_type
Statistics returned by Instance::stats().
const string strtime(const string &format, const bool &local=true) const
Converts time to a string.
Definition: types_easy.cpp:33
struct Mastodon::Easy::stream_event_type stream_event_type
Used for stream events.
card_type
Describes the card type.
Definition: types_easy.hpp:83
Type of notification and 'push is requested or not'.
Definition: types_easy.hpp:139
Poll options returned by Poll::options().
Definition: types_easy.hpp:232
friend std::ostream & operator<<(std::ostream &out, const Easy::time_type &t)
Returns local time as string in ISO 8601 format (FTTz).
Definition: types_easy.cpp:53
event_type
Describes the event type returned in streams.
Definition: types_easy.hpp:38
visibility_type
Describes visibility of posts.
Definition: types_easy.hpp:54
attachment_type
Describes the attachment type.
Definition: types_easy.hpp:69