17 #ifndef MASTODON_CPP_EASY_INSTANCE_HPP 18 #define MASTODON_CPP_EASY_INSTANCE_HPP 25 #include "mastodon-cpp.hpp" 26 #include "easy/easy.hpp" 27 #include "easy/entities/account.hpp" 29 #include <mastodon-cpp/mastodon-cpp.hpp> 30 #include <mastodon-cpp/easy/easy.hpp> 31 #include <mastodon-cpp/easy/entities/account.hpp> 49 explicit Instance(
const string &json);
70 const string email()
const;
76 const std::vector<string>
languages()
const;
81 const string title()
const;
86 const string uri()
const;
100 #endif // MASTODON_CPP_EASY_INSTANCE_HPP Instance()
Constructs an empty Instance object.
Definition: instance.cpp:29
const string streaming_api() const
Returns the URL for the streaming API.
Definition: instance.cpp:75
Class to hold instances.
Definition: instance.hpp:41
const std::vector< string > languages() const
Returns a vector of ISO 6391 language codes the instance has chosen to advertise. ...
Definition: instance.cpp:55
const string uri() const
Returns the URI of the instance.
Definition: instance.cpp:65
const string email() const
Returns the email address which can be used to contact the instance administrator.
Definition: instance.cpp:50
const string title() const
Returns the title of the instance.
Definition: instance.cpp:60
const Account contact_account() const
Returns the Account of the admin or another contact person.
Definition: instance.cpp:33
Class to hold accounts.
Definition: account.hpp:42
Definition: mastodon-cpp.hpp:51
Base class for all entities.
Definition: easy.hpp:225
const string description() const
Returns the description of the instance.
Definition: instance.cpp:45
const string version() const
Returns the version used by the instance.
Definition: instance.cpp:70