17 #ifndef MASTODON_CPP_EASY_INSTANCE_HPP 18 #define MASTODON_CPP_EASY_INSTANCE_HPP 25 #include "../../mastodon-cpp.hpp" 26 #include "../entity.hpp" 27 #include "account.hpp" 45 virtual bool valid()
const override;
67 const string email()
const;
89 const string title()
const;
96 const string uri()
const;
132 #endif // MASTODON_CPP_EASY_INSTANCE_HPP Entity()
Constructs an empty Entity object.
Definition: entity.cpp:43
const Easy::urls_type urls() const
Returns the URL for the streaming API and possibly others.
Definition: instance.cpp:85
Class to hold instances.
Definition: instance.hpp:40
const vector< string > languages() const
Returns a vector of ISO 6391 language codes the instance has chosen to advertise.
Definition: instance.cpp:61
const string uri() const
Returns the URI of the instance.
Definition: instance.cpp:80
Statistics returned by Instance::stats().
Definition: types_easy.hpp:222
const string email() const
Returns the email address which can be used to contact the instance administrator.
Definition: instance.cpp:56
const Easy::stats_type stats() const
Returns statistics about the instance.
Definition: instance.cpp:66
const string title() const
Returns the title of the instance.
Definition: instance.cpp:75
const Account contact_account() const
Returns the Account of the admin or another contact person.
Definition: instance.cpp:40
const string thumbnail() const
Returns the thumbnail of the instance.
Definition: instance.cpp:95
Class to hold accounts.
Definition: account.hpp:42
uint64_t max_toot_chars() const
Returns the maximum chars a post can have.
Definition: instance.cpp:100
Collection of things to interface with server software that implements the Mastodon API.
Definition: mastodon-cpp.hpp:47
Base class for all entities.
Definition: entity.hpp:36
URLs returned by Instance::urls().
Definition: types_easy.hpp:214
virtual bool valid() const override
Returns true if the Entity holds valid data.
Definition: instance.cpp:25
const string description() const
Returns the description of the instance.
Definition: instance.cpp:51
const string version() const
Returns the version used by the instance.
Definition: instance.cpp:90