17 #ifndef MASTODON_CPP_EASY_TYPES_EASY_HPP 18 #define MASTODON_CPP_EASY_TYPES_EASY_HPP 26 using std::chrono::system_clock;
130 [[deprecated(
"Replaced by Mastodon::Easy::stream_event_type")]]
141 bool pushreq =
false;
151 system_clock::time_point timepoint = system_clock::time_point();
153 operator const system_clock::time_point()
const;
160 operator const string()
const;
167 friend std::ostream &
operator <<(std::ostream &out,
189 const string strtime(
const string &format,
190 const bool &local =
true)
const;
193 [[deprecated(
"Replaced by Mastodon::Easy::time_type")]]
215 string streaming_api;
223 uint64_t user_count = 0;
224 uint64_t status_count = 0;
225 uint64_t domain_count = 0;
229 #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:149
Class to hold mentions.
Definition: mention.hpp:39
Statistics returned by Instance::stats().
Definition: types_easy.hpp:221
Used for stream events.
Definition: types_easy.hpp:124
struct Mastodon::Easy::urls_type urls_type
URLs returned by Instance::urls().
Describes an account-field.
Definition: types_easy.hpp:201
struct Mastodon::Easy::alert_type alert_type
Type of notification and 'push is requested or not'.
std::ostream & operator<<(std::ostream &out, const time_type &t)
Definition: types_easy.cpp:53
Collection of things to interface with server software that implements the Mastodon API...
Definition: mastodon-cpp.hpp:46
context_type
Describes the context.
Definition: types_easy.hpp:110
struct Mastodon::Easy::account_field_type account_field_type
Describes an account-field.
notification_type
Describes the notification type.
Definition: types_easy.hpp:96
URLs returned by Instance::urls().
Definition: types_easy.hpp:213
struct Mastodon::Easy::stats_type stats_type
Statistics returned by Instance::stats().
struct Mastodon::Easy::stream_event_type stream_event_type
Used for stream events.
card_type
Describes the card type.
Definition: types_easy.hpp:82
Type of notification and 'push is requested or not'.
Definition: types_easy.hpp:138
event_type
Describes the event type returned in streams.
Definition: types_easy.hpp:38
visibility_type
Describes visibility of posts.
Definition: types_easy.hpp:53
attachment_type
Describes the attachment type.
Definition: types_easy.hpp:68