17 #ifndef MASTODON_CPP_EASY_INSTANCE_HPP 18 #define MASTODON_CPP_EASY_INSTANCE_HPP 23 using std::uint_fast64_t;
27 #include "mastodon-cpp.hpp" 28 #include "easy/easy.hpp" 29 #include "easy/entities/account.hpp" 31 #include <mastodon-cpp/mastodon-cpp.hpp> 32 #include <mastodon-cpp/easy/easy.hpp> 33 #include <mastodon-cpp/easy/entities/account.hpp> 55 explicit Instance(
const string &json);
64 virtual bool valid()
const;
86 const string email()
const;
94 const std::vector<string>
languages()
const;
101 const string title()
const;
108 const string uri()
const;
136 #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:92
Class to hold instances.
Definition: instance.hpp:45
virtual bool valid() const
Returns true if the Entity holds valid data.
Definition: instance.cpp:33
const std::vector< string > languages() const
Returns a vector of ISO 6391 language codes the instance has chosen to advertise. ...
Definition: instance.cpp:72
const string uri() const
Returns the URI of the instance.
Definition: instance.cpp:82
const string email() const
Returns the email address which can be used to contact the instance administrator.
Definition: instance.cpp:67
const string title() const
Returns the title of the instance.
Definition: instance.cpp:77
const Account contact_account() const
Returns the Account of the admin or another contact person.
Definition: instance.cpp:50
Class to hold accounts.
Definition: account.hpp:46
Definition: mastodon-cpp.hpp:52
Base class for all entities.
Definition: easy.hpp:304
uint_fast64_t max_toot_chars() const
Returns the maximum chars a post can have.
Definition: instance.cpp:97
const string description() const
Returns the description of the instance.
Definition: instance.cpp:62
const string version() const
Returns the version used by the instance.
Definition: instance.cpp:87