mastodon-cpp
0.110.0
|
Collection of things that make it easier to interface with server software that implements the Mastodon API. More...
Classes | |
class | Account |
Class to hold accounts. More... | |
struct | account_field_type |
Describes an account-field. More... | |
struct | alert_type |
Type of notification and 'push is requested or not'. More... | |
class | API |
Child of Mastodon::API with abstract methods. More... | |
class | Application |
Class to hold applications. More... | |
class | Attachment |
Class to hold attachments. More... | |
class | Card |
Class to hold cards. More... | |
class | Context |
Class to hold contexts. More... | |
class | Conversation |
Class to hold conversations. More... | |
class | Emoji |
Class to hold emojis. More... | |
class | Entity |
Base class for all entities. More... | |
class | Filter |
Class to hold filters. More... | |
class | Instance |
Class to hold instances. More... | |
class | Link |
Class to hold the Link -header. More... | |
class | List |
Class to hold lists. More... | |
class | Mention |
Class to hold mentions. More... | |
class | Notification |
Class to hold notifications. More... | |
class | Poll |
Class to hold polls. More... | |
struct | poll_options_type |
Poll options returned by Poll::options(). More... | |
class | PushSubscription |
Class to hold push subscriptions. More... | |
class | Relationship |
Class to hold relationships. More... | |
class | Results |
Class to hold results. More... | |
struct | return_entity |
Return types for calls that return a single Easy::Entity . More... | |
struct | return_entity_vector |
Return types for calls that return multiple Easy::Entity s. More... | |
struct | stats_type |
Statistics returned by Instance::stats(). More... | |
class | Status |
Class to hold statuses. More... | |
struct | stream_event_type |
Used for stream events. More... | |
class | Tag |
Class to hold tags. More... | |
struct | time_type |
Type for time. Converts to time_point and string. More... | |
class | Token |
Class to hold applications. More... | |
struct | urls_type |
URLs returned by Instance::urls(). More... | |
Typedefs | |
typedef struct Mastodon::Easy::stream_event_type | stream_event_type |
Used for stream events. More... | |
typedef stream_event_type | stream_event |
typedef struct Mastodon::Easy::alert_type | alert_type |
Type of notification and 'push is requested or not'. More... | |
typedef time_type | time |
typedef struct Mastodon::Easy::account_field_type | account_field_type |
Describes an account-field. More... | |
typedef struct Mastodon::Easy::urls_type | urls_type |
URLs returned by Instance::urls(). More... | |
typedef struct Mastodon::Easy::stats_type | stats_type |
Statistics returned by Instance::stats(). | |
typedef struct Mastodon::Easy::poll_options_type | poll_options_type |
Poll options returned by Poll::options(). | |
Enumerations | |
enum | event_type { Update, Notification, Delete, Error, Filters_changed, Undefined } |
Describes the event type returned in streams. More... | |
enum | visibility_type { Direct, Private, Unlisted, Public, Undefined } |
Describes visibility of posts. More... | |
enum | attachment_type { Image, Video, Gifv, Unknown, Undefined } |
Describes the attachment type. More... | |
enum | card_type { Link, Photo, Video, Rich, Undefined } |
Describes the card type. More... | |
enum | notification_type { Mention, Reblog, Favourite, Follow, Undefined } |
Describes the notification type. More... | |
enum | context_type { Home, Notifications, Public, Thread, Undefined } |
Describes the context. More... | |
Functions | |
const vector< string > | json_array_to_vector (const string &json) |
Turns a JSON array into a vector of strings. More... | |
const vector< stream_event_type > | parse_stream (const std::string &streamdata) |
Split stream into a vector of events. More... | |
const Easy::time_type | string_to_time (const string &strtime) |
Convert ISO 8601 time string to Easy::time. More... | |
std::ostream & | operator<< (std::ostream &out, const time_type &t) |
Collection of things that make it easier to interface with server software that implements the Mastodon API.
Describes an account-field.
typedef struct Mastodon::Easy::alert_type Mastodon::Easy::alert_type |
Type of notification and 'push is requested or not'.
Used for stream events.
typedef struct Mastodon::Easy::urls_type Mastodon::Easy::urls_type |
URLs returned by Instance::urls().
|
strong |
|
strong |
|
strong |
|
strong |
Describes the event type returned in streams.
|
strong |
Describes the notification type.
|
strong |
const std::vector< string > Mastodon::Easy::json_array_to_vector | ( | const string & | json | ) |
Turns a JSON array into a vector of strings.
json | JSON string holding the array |
std::ostream& Mastodon::Easy::operator<< | ( | std::ostream & | out, |
const time_type & | t | ||
) |
const vector< Easy::stream_event_type > Mastodon::Easy::parse_stream | ( | const std::string & | streamdata | ) |
Split stream into a vector of events.
streamdata | Data from get_stream() |
const Easy::time_type Mastodon::Easy::string_to_time | ( | const string & | strtime | ) |
Convert ISO 8601 time string to Easy::time.
strtime | Time string as returned by Mastodon. |