diff --git a/src/api/delete.cpp b/src/api/delete.cpp index 072f6ff..1d37fc6 100644 --- a/src/api/delete.cpp +++ b/src/api/delete.cpp @@ -20,7 +20,7 @@ using namespace Mastodon; -uint_fast16_t API::del(const Mastodon::API::v1 &call, +uint16_t API::del(const Mastodon::API::v1 &call, const parametermap ¶meters) { string strcall = ""; @@ -60,7 +60,7 @@ uint_fast16_t API::del(const Mastodon::API::v1 &call, return del(strcall, parameters, answer); } -uint_fast16_t API::del(const std::string &call, +uint16_t API::del(const std::string &call, const parametermap ¶meters, string &answer) { diff --git a/src/api/get.cpp b/src/api/get.cpp index 19d364e..bde7560 100644 --- a/src/api/get.cpp +++ b/src/api/get.cpp @@ -21,7 +21,7 @@ using namespace Mastodon; using std::cerr; -uint_fast16_t API::get(const Mastodon::API::v1 &call, +uint16_t API::get(const Mastodon::API::v1 &call, const parametermap ¶meters, string &answer) { string strcall = ""; @@ -168,7 +168,7 @@ uint_fast16_t API::get(const Mastodon::API::v1 &call, return get(strcall, answer); } -uint_fast16_t API::get(const Mastodon::API::v2 &call, +uint16_t API::get(const Mastodon::API::v2 &call, const parametermap ¶meters, string &answer) { string strcall = ""; @@ -204,13 +204,13 @@ uint_fast16_t API::get(const Mastodon::API::v2 &call, return get(strcall, answer); } -uint_fast16_t API::get(const Mastodon::API::v1 &call, string &answer) +uint16_t API::get(const Mastodon::API::v1 &call, string &answer) { const parametermap p; return get(call, p, answer); } -uint_fast16_t API::get(const std::string &call, string &answer) +uint16_t API::get(const std::string &call, string &answer) { return _http.request(http::method::GET, call, answer); } diff --git a/src/api/get_stream.cpp b/src/api/get_stream.cpp index 98fb02a..11c360f 100644 --- a/src/api/get_stream.cpp +++ b/src/api/get_stream.cpp @@ -21,7 +21,7 @@ using namespace Mastodon; using std::cerr; -uint_fast16_t API::get_stream(const Mastodon::API::v1 &call, +uint16_t API::get_stream(const Mastodon::API::v1 &call, const parametermap ¶meters, string &answer, std::unique_ptr &ptr) @@ -59,7 +59,7 @@ uint_fast16_t API::get_stream(const Mastodon::API::v1 &call, return get_stream(strcall, answer, ptr); } -uint_fast16_t API::get_stream(const Mastodon::API::v1 &call, +uint16_t API::get_stream(const Mastodon::API::v1 &call, string &answer, std::unique_ptr &ptr) { @@ -67,7 +67,7 @@ uint_fast16_t API::get_stream(const Mastodon::API::v1 &call, return get_stream(call, p, answer, ptr); } -uint_fast16_t API::get_stream(const std::string &call, string &answer, +uint16_t API::get_stream(const std::string &call, string &answer, std::unique_ptr &ptr) { ptr = std::make_unique(*this, _instance, _access_token); diff --git a/src/api/patch.cpp b/src/api/patch.cpp index 5abf93f..982d652 100644 --- a/src/api/patch.cpp +++ b/src/api/patch.cpp @@ -21,7 +21,7 @@ using namespace Mastodon; using std::cerr; -uint_fast16_t API::patch(const Mastodon::API::v1 &call, +uint16_t API::patch(const Mastodon::API::v1 &call, const parametermap ¶meters, string &answer) { diff --git a/src/api/post.cpp b/src/api/post.cpp index 7d36075..ecaa1eb 100644 --- a/src/api/post.cpp +++ b/src/api/post.cpp @@ -20,7 +20,7 @@ using namespace Mastodon; -uint_fast16_t API::post(const Mastodon::API::v1 &call, +uint16_t API::post(const Mastodon::API::v1 &call, const parametermap ¶meters, string &answer) { string strcall = ""; @@ -137,13 +137,13 @@ uint_fast16_t API::post(const Mastodon::API::v1 &call, return post(strcall, parameters, answer); } -uint_fast16_t API::post(const Mastodon::API::v1 &call, string &answer) +uint16_t API::post(const Mastodon::API::v1 &call, string &answer) { const parametermap p; return post(call, p, answer); } -uint_fast16_t API::post(const string &call, +uint16_t API::post(const string &call, const parametermap ¶meters, string &answer) { diff --git a/src/api/put.cpp b/src/api/put.cpp index 4db0042..01cf0a4 100644 --- a/src/api/put.cpp +++ b/src/api/put.cpp @@ -20,7 +20,7 @@ using namespace Mastodon; -uint_fast16_t API::put(const Mastodon::API::v1 &call, +uint16_t API::put(const Mastodon::API::v1 &call, const parametermap ¶meters, string &answer) { string strcall = ""; @@ -53,7 +53,7 @@ uint_fast16_t API::put(const Mastodon::API::v1 &call, return put(strcall, parameters, answer); } -uint_fast16_t API::put(const string &call, +uint16_t API::put(const string &call, const parametermap ¶meters, string &answer) { diff --git a/src/easy/easy.cpp b/src/easy/easy.cpp index c383053..6bc6cdb 100644 --- a/src/easy/easy.cpp +++ b/src/easy/easy.cpp @@ -97,7 +97,7 @@ const string Easy::strtime_local(const system_clock::time_point &timepoint, const string Easy::strtime(const system_clock::time_point &timepoint, const string &format, const bool &utc) { - constexpr std::uint_fast16_t bufsize = 1024; + constexpr std::uint16_t bufsize = 1024; std::time_t time = system_clock::to_time_t(timepoint); std::tm *timeinfo; if (utc) diff --git a/src/easy/easy.hpp b/src/easy/easy.hpp index 402cee0..d6adf52 100644 --- a/src/easy/easy.hpp +++ b/src/easy/easy.hpp @@ -34,8 +34,8 @@ using std::string; using std::vector; -using std::uint_fast64_t; -using std::uint_fast16_t; +using std::uint64_t; +using std::uint16_t; using std::chrono::system_clock; namespace Mastodon @@ -286,14 +286,14 @@ public: * * @since 0.18.1 */ - const Status send_post(const Status &status, uint_fast16_t &error); + const Status send_post(const Status &status, uint16_t &error); /*! * @brief Alias for send_post() * * @since 0.17.0 */ - const Status send_toot(const Status &status, uint_fast16_t &error); + const Status send_toot(const Status &status, uint16_t &error); /*! * @brief Gets notifications. @@ -308,7 +308,7 @@ public: * @since 0.21.0 */ const vector get_notifications( - uint_fast16_t &error, const uint_fast16_t limit = 20, + uint16_t &error, const uint16_t limit = 20, const string since_id = 0, const string max_id = 0); /*! @@ -414,11 +414,11 @@ public: const string get_string(const string &key) const; /*! - * @brief Returns the value of key as std::uint_fast64_t + * @brief Returns the value of key as std::uint64_t * * Returns 0 if the value does not exist or is null. */ - uint_fast64_t get_uint64(const string &key) const; + uint64_t get_uint64(const string &key) const; /*! * @brief Returns the value of key as double @@ -457,7 +457,7 @@ public: */ void set(const string &key, const Json::Value &value); - std::uint_fast64_t stouint64(const string &str) const; + std::uint64_t stouint64(const string &str) const; /*! * @brief Checks if an Entity is valid diff --git a/src/easy/entities/account.cpp b/src/easy/entities/account.cpp index 629c1cd..c51d7ef 100644 --- a/src/easy/entities/account.cpp +++ b/src/easy/entities/account.cpp @@ -128,12 +128,12 @@ Account Account::fields(std::vector &fields) return *this; } -std::uint_fast64_t Account::followers_count() const +std::uint64_t Account::followers_count() const { return get_uint64("followers_count"); } -std::uint_fast64_t Account::following_count() const +std::uint64_t Account::following_count() const { return get_uint64("following_count"); } @@ -354,7 +354,7 @@ Account Account::source(const Account::Source &source) return *this; } -std::uint_fast64_t Account::statuses_count() const +std::uint64_t Account::statuses_count() const { return get_uint64("statuses_count"); } diff --git a/src/easy/entities/account.hpp b/src/easy/entities/account.hpp index 85fa776..b699f02 100644 --- a/src/easy/entities/account.hpp +++ b/src/easy/entities/account.hpp @@ -33,7 +33,7 @@ #endif using std::string; -using std::uint_fast64_t; +using std::uint64_t; using std::chrono::system_clock; namespace Mastodon @@ -151,14 +151,14 @@ namespace Mastodon * * @since before 0.11.0 */ - uint_fast64_t followers_count() const; + uint64_t followers_count() const; /*! * @brief Returns number of people this account follows * * @since before 0.11.0 */ - uint_fast64_t following_count() const; + uint64_t following_count() const; /*! * @brief Returns URL of header image @@ -338,7 +338,7 @@ namespace Mastodon * * @since before 0.11.0 */ - uint_fast64_t statuses_count() const; + uint64_t statuses_count() const; /*! * @brief Returns URL of the profile diff --git a/src/easy/entities/attachment.cpp b/src/easy/entities/attachment.cpp index cb407dc..6df29ad 100644 --- a/src/easy/entities/attachment.cpp +++ b/src/easy/entities/attachment.cpp @@ -52,7 +52,7 @@ double Attachment::aspect_small() const return get_double("meta.small.aspect"); } -uint_fast64_t Attachment::bitrate() const +uint64_t Attachment::bitrate() const { return get_uint64("meta.original.bitrate"); } @@ -119,8 +119,8 @@ double Attachment::framerate() const std::size_t pos = strframes.find('/'); if (pos != std::string::npos) { - std::uint_fast16_t frames = std::stoul(strframes.substr(0, pos)); - std::uint_fast16_t divider = std::stoul(strframes.substr(pos + 1)); + std::uint16_t frames = std::stoul(strframes.substr(0, pos)); + std::uint16_t divider = std::stoul(strframes.substr(pos + 1)); return frames / divider; } @@ -129,12 +129,12 @@ double Attachment::framerate() const return 0.0; } -uint_fast64_t Attachment::height() const +uint64_t Attachment::height() const { return get_uint64("meta.original.height"); } -uint_fast64_t Attachment::height_small() const +uint64_t Attachment::height_small() const { return get_uint64("meta.small.height"); } @@ -190,12 +190,12 @@ const string Attachment::url() const return get_string("url"); } -uint_fast64_t Attachment::width() const +uint64_t Attachment::width() const { return get_uint64("meta.original.width"); } -uint_fast64_t Attachment::width_small() const +uint64_t Attachment::width_small() const { return get_uint64("meta.small.width"); } diff --git a/src/easy/entities/attachment.hpp b/src/easy/entities/attachment.hpp index 49606fa..62d58eb 100644 --- a/src/easy/entities/attachment.hpp +++ b/src/easy/entities/attachment.hpp @@ -32,7 +32,7 @@ #endif using std::string; -using std::uint_fast64_t; +using std::uint64_t; namespace Mastodon { @@ -81,7 +81,7 @@ namespace Mastodon * * @since before 0.11.0 */ - uint_fast64_t bitrate() const; + uint64_t bitrate() const; /*! * @brief Returns the image description @@ -150,14 +150,14 @@ namespace Mastodon * * @since before 0.11.0 */ - uint_fast64_t height() const; + uint64_t height() const; /*! * @brief Returns the height of the preview image * * @since before 0.11.0 */ - uint_fast64_t height_small() const; + uint64_t height_small() const; /*! * @brief Returns the ID of the attachment @@ -220,14 +220,14 @@ namespace Mastodon * * @since before 0.11.0 */ - uint_fast64_t width() const; + uint64_t width() const; /*! * @brief Returns the width of the preview image * * @since before 0.11.0 */ - uint_fast64_t width_small() const; + uint64_t width_small() const; }; diff --git a/src/easy/entities/card.cpp b/src/easy/entities/card.cpp index d9378a4..45137c7 100644 --- a/src/easy/entities/card.cpp +++ b/src/easy/entities/card.cpp @@ -56,7 +56,7 @@ const string Card::description() const return get_string("description"); } -uint_fast64_t Card::height() const +uint64_t Card::height() const { return get_uint64("height"); } @@ -107,7 +107,7 @@ const string Card::url() const return get_string("url"); } -uint_fast64_t Card::width() const +uint64_t Card::width() const { return get_uint64("width"); } diff --git a/src/easy/entities/card.hpp b/src/easy/entities/card.hpp index a2fba4a..aa7cf05 100644 --- a/src/easy/entities/card.hpp +++ b/src/easy/entities/card.hpp @@ -30,7 +30,7 @@ #endif using std::string; -using std::uint_fast64_t; +using std::uint64_t; namespace Mastodon { @@ -86,7 +86,7 @@ namespace Mastodon * * @since before 0.11.0 */ - uint_fast64_t height() const; + uint64_t height() const; /*! * @brief Returns the HTML @@ -142,7 +142,7 @@ namespace Mastodon * * @since before 0.11.0 */ - uint_fast64_t width() const; + uint64_t width() const; }; } diff --git a/src/easy/entities/instance.cpp b/src/easy/entities/instance.cpp index 8852d41..5129b78 100644 --- a/src/easy/entities/instance.cpp +++ b/src/easy/entities/instance.cpp @@ -94,9 +94,9 @@ const string Instance::streaming_api() const return get_string("urls.streaming_api"); } -uint_fast64_t Instance::max_toot_chars() const +uint64_t Instance::max_toot_chars() const { - const uint_fast64_t max_chars = get_uint64("max_toot_chars"); + const uint64_t max_chars = get_uint64("max_toot_chars"); if (was_set()) { return max_chars; diff --git a/src/easy/entities/instance.hpp b/src/easy/entities/instance.hpp index bfcc992..94b6f8d 100644 --- a/src/easy/entities/instance.hpp +++ b/src/easy/entities/instance.hpp @@ -20,7 +20,7 @@ #include #include -using std::uint_fast64_t; +using std::uint64_t; // If we are compiling mastodon-cpp, use another include path #ifdef MASTODON_CPP @@ -129,7 +129,7 @@ namespace Mastodon * * @since 0.20.0 */ - uint_fast64_t max_toot_chars() const; + uint64_t max_toot_chars() const; }; } diff --git a/src/easy/entities/list.cpp b/src/easy/entities/list.cpp index 1ad4a8b..c6ea2b6 100644 --- a/src/easy/entities/list.cpp +++ b/src/easy/entities/list.cpp @@ -19,7 +19,7 @@ using namespace Mastodon; using List = Easy::List; using std::string; -using std::uint_fast64_t; +using std::uint64_t; List::List(const string &json) : Entity(json) diff --git a/src/easy/entities/list.hpp b/src/easy/entities/list.hpp index aeb97bb..9f80ffa 100644 --- a/src/easy/entities/list.hpp +++ b/src/easy/entities/list.hpp @@ -31,7 +31,7 @@ #endif using std::string; -using std::uint_fast64_t; +using std::uint64_t; namespace Mastodon { diff --git a/src/easy/entities/mention.hpp b/src/easy/entities/mention.hpp index 6a840a8..38792b8 100644 --- a/src/easy/entities/mention.hpp +++ b/src/easy/entities/mention.hpp @@ -30,7 +30,7 @@ #endif using std::string; -using std::uint_fast64_t; +using std::uint64_t; using std::chrono::system_clock; namespace Mastodon diff --git a/src/easy/entities/notification.hpp b/src/easy/entities/notification.hpp index fbe6c60..7e7797d 100644 --- a/src/easy/entities/notification.hpp +++ b/src/easy/entities/notification.hpp @@ -35,7 +35,7 @@ #endif using std::string; -using std::uint_fast64_t; +using std::uint64_t; using std::chrono::system_clock; namespace Mastodon diff --git a/src/easy/entities/relationship.hpp b/src/easy/entities/relationship.hpp index fe4f729..9b2642b 100644 --- a/src/easy/entities/relationship.hpp +++ b/src/easy/entities/relationship.hpp @@ -30,7 +30,7 @@ #endif using std::string; -using std::uint_fast64_t; +using std::uint64_t; namespace Mastodon { diff --git a/src/easy/entities/status.cpp b/src/easy/entities/status.cpp index 88f183d..ef909bf 100644 --- a/src/easy/entities/status.cpp +++ b/src/easy/entities/status.cpp @@ -122,7 +122,7 @@ bool Status::favourited() const return get_bool("favourited"); } -uint_fast64_t Status::favourites_count() const +uint64_t Status::favourites_count() const { return get_uint64("favourites_count"); } @@ -231,12 +231,12 @@ bool Status::reblogged() const return get_bool("reblogged"); } -uint_fast64_t Status::reblogs_count() const +uint64_t Status::reblogs_count() const { return get_uint64("reblogs_count"); } -uint_fast64_t Status::replies_count() const +uint64_t Status::replies_count() const { return get_uint64("replies_count"); } diff --git a/src/easy/entities/status.hpp b/src/easy/entities/status.hpp index 494c546..87ff53f 100644 --- a/src/easy/entities/status.hpp +++ b/src/easy/entities/status.hpp @@ -46,7 +46,7 @@ #endif using std::string; -using std::uint_fast64_t; +using std::uint64_t; using std::chrono::system_clock; namespace Mastodon @@ -138,7 +138,7 @@ namespace Mastodon * * @since before 0.11.0 */ - uint_fast64_t favourites_count() const; + uint64_t favourites_count() const; /*! * @brief Returns the ID of the status @@ -237,14 +237,14 @@ namespace Mastodon * * @since before 0.11.0 */ - uint_fast64_t reblogs_count() const; + uint64_t reblogs_count() const; /*! * @brief Returns the number of replies for the status * * @since 0.19.0 */ - uint_fast64_t replies_count() const; + uint64_t replies_count() const; /*! * @brief Returns true if the attachments should be hidden by default diff --git a/src/easy/entities/tag.cpp b/src/easy/entities/tag.cpp index e2d1a96..0346279 100644 --- a/src/easy/entities/tag.cpp +++ b/src/easy/entities/tag.cpp @@ -89,7 +89,7 @@ bool Tag::History::valid() const return Entity::check_valid(attributes); } -uint_fast64_t Tag::History::accounts() +uint64_t Tag::History::accounts() { return stouint64(get_string("accounts")); } @@ -108,7 +108,7 @@ const system_clock::time_point Tag::History::day() return system_clock::time_point(); } -uint_fast64_t Tag::History::uses() +uint64_t Tag::History::uses() { return stouint64(get_string("uses")); } diff --git a/src/easy/entities/tag.hpp b/src/easy/entities/tag.hpp index 8e3dec6..38ee360 100644 --- a/src/easy/entities/tag.hpp +++ b/src/easy/entities/tag.hpp @@ -32,7 +32,7 @@ using std::string; using std::chrono::system_clock; -using std::uint_fast64_t; +using std::uint64_t; namespace Mastodon { @@ -75,7 +75,7 @@ namespace Mastodon * * @since 0.16.0 */ - uint_fast64_t accounts(); + uint64_t accounts(); /*! * @brief Returns the day. @@ -89,7 +89,7 @@ namespace Mastodon * * @since 0.16.0 */ - uint_fast64_t uses(); + uint64_t uses(); }; /*! diff --git a/src/easy/entity.cpp b/src/easy/entity.cpp index 3bd5710..6b2e3b0 100644 --- a/src/easy/entity.cpp +++ b/src/easy/entity.cpp @@ -145,7 +145,7 @@ const string Easy::Entity::get_string(const string &key) const return ""; } -uint_fast64_t Easy::Entity::get_uint64(const string &key) const +uint64_t Easy::Entity::get_uint64(const string &key) const { const Json::Value node = get(key); @@ -264,7 +264,7 @@ void Easy::Entity::set(const string &key, const Json::Value &value) ttdebug << "Could not set data: " << key << '\n'; } -std::uint_fast64_t Easy::Entity::stouint64(const string &str) const +std::uint64_t Easy::Entity::stouint64(const string &str) const { if (str == "") { diff --git a/src/easy/simple_calls.cpp b/src/easy/simple_calls.cpp index f65b1a3..6c916fe 100644 --- a/src/easy/simple_calls.cpp +++ b/src/easy/simple_calls.cpp @@ -23,12 +23,12 @@ using namespace Mastodon; -const Easy::Status Easy::send_toot(const Status &status, uint_fast16_t &error) +const Easy::Status Easy::send_toot(const Status &status, uint16_t &error) { return send_post(status, error); } -const Easy::Status Easy::send_post(const Status &status, uint_fast16_t &error) +const Easy::Status Easy::send_post(const Status &status, uint16_t &error) { API::parametermap parameters; string answer; @@ -139,7 +139,7 @@ const Easy::Status Easy::send_post(const Status &status, uint_fast16_t &error) } const vector Easy::get_notifications( - uint_fast16_t &error, const uint_fast16_t limit, + uint16_t &error, const uint16_t limit, const string since_id, const string max_id) { API::parametermap parameters; diff --git a/src/http.cpp b/src/http.cpp index 28cc061..b9f995f 100644 --- a/src/http.cpp +++ b/src/http.cpp @@ -44,21 +44,21 @@ API::http::~http() curlpp::terminate(); } -uint_fast16_t API::http::request(const method &meth, +uint16_t API::http::request(const method &meth, const string &path, string &answer) { return request(meth, path, curlpp::Forms(), answer); } -uint_fast16_t API::http::request(const method &meth, +uint16_t API::http::request(const method &meth, const string &path, const curlpp::Forms &formdata, string &answer) { using namespace std::placeholders; // _1, _2, _3 - uint_fast16_t ret = 0; + uint16_t ret = 0; ttdebug << "Path is: " << path << '\n'; try diff --git a/src/mastodon-cpp.cpp b/src/mastodon-cpp.cpp index 78c450b..0e222be 100644 --- a/src/mastodon-cpp.cpp +++ b/src/mastodon-cpp.cpp @@ -148,7 +148,7 @@ const std::string API::urldecode(const std::string &str) return curlpp::unescape(str); } -uint_fast16_t API::register_app1(const string &client_name, +uint16_t API::register_app1(const string &client_name, const string &redirect_uri, const string &scopes, const string &website, @@ -165,7 +165,7 @@ uint_fast16_t API::register_app1(const string &client_name, }; string answer; - uint_fast16_t ret = post(API::v1::apps, parameters, answer); + uint16_t ret = post(API::v1::apps, parameters, answer); if (ret == 0) { @@ -202,7 +202,7 @@ uint_fast16_t API::register_app1(const string &client_name, } -uint_fast16_t API::register_app2(const string &client_id, +uint16_t API::register_app2(const string &client_id, const string &client_secret, const string &redirect_uri, const string &code, @@ -218,7 +218,7 @@ uint_fast16_t API::register_app2(const string &client_id, }; std::string answer; - uint_fast16_t ret = post("/oauth/token", parameters, answer); + uint16_t ret = post("/oauth/token", parameters, answer); if (ret == 0) { std::smatch match; diff --git a/src/mastodon-cpp.hpp b/src/mastodon-cpp.hpp index 41c4414..8f4820c 100644 --- a/src/mastodon-cpp.hpp +++ b/src/mastodon-cpp.hpp @@ -27,7 +27,7 @@ #include #include -using std::uint_fast16_t; +using std::uint16_t; using std::string; /*! @@ -101,7 +101,7 @@ public: explicit http(const API &api, const string &instance, const string &access_token); ~http(); - uint_fast16_t request(const method &meth, + uint16_t request(const method &meth, const string &path, string &answer); @@ -118,7 +118,7 @@ public: * * @since before 0.11.0 */ - uint_fast16_t request(const method &meth, + uint16_t request(const method &meth, const string &path, const curlpp::Forms &formdata, string &answer); @@ -369,7 +369,7 @@ public: * * @since before 0.11.0 */ - uint_fast16_t register_app1(const string &client_name, + uint16_t register_app1(const string &client_name, const string &redirect_uri, const string &scopes, const string &website, @@ -393,7 +393,7 @@ public: * * @since before 0.11.0 */ - uint_fast16_t register_app2(const string &client_id, + uint16_t register_app2(const string &client_id, const string &client_secret, const string &redirect_uri, const string &code, @@ -472,7 +472,7 @@ public: * * @since before 0.11.0 */ - uint_fast16_t get(const Mastodon::API::v1 &call, string &answer); + uint16_t get(const Mastodon::API::v1 &call, string &answer); /*! * @brief Make a GET request which requires parameters. @@ -485,7 +485,7 @@ public: * @return @ref error "Error code". If the URL has permanently changed, 13 * is returned and answer is set to the new URL. */ - uint_fast16_t get(const Mastodon::API::v1 &call, + uint16_t get(const Mastodon::API::v1 &call, const parametermap ¶meters, string &answer); @@ -494,7 +494,7 @@ public: * * @since 0.16.0 */ - uint_fast16_t get(const Mastodon::API::v2 &call, + uint16_t get(const Mastodon::API::v2 &call, const parametermap ¶meters, string &answer); @@ -510,7 +510,7 @@ public: * * @since before 0.11.0 */ - uint_fast16_t get(const string &call, string &answer); + uint16_t get(const string &call, string &answer); /*! * @brief Make a streaming GET request. @@ -526,7 +526,7 @@ public: * * @since before 0.11.0 */ - uint_fast16_t get_stream(const Mastodon::API::v1 &call, + uint16_t get_stream(const Mastodon::API::v1 &call, const parametermap ¶meters, string &answer, std::unique_ptr &ptr); @@ -544,7 +544,7 @@ public: * * @since before 0.11.0 */ - uint_fast16_t get_stream(const Mastodon::API::v1 &call, + uint16_t get_stream(const Mastodon::API::v1 &call, string &answer, std::unique_ptr &ptr); @@ -562,7 +562,7 @@ public: * * @since before 0.11.0 */ - uint_fast16_t get_stream(const string &call, + uint16_t get_stream(const string &call, string &answer, std::unique_ptr &ptr); @@ -581,7 +581,7 @@ public: * * @since before 0.11.0 */ - uint_fast16_t patch(const Mastodon::API::v1 &call, + uint16_t patch(const Mastodon::API::v1 &call, const parametermap ¶meters, string &answer); @@ -597,7 +597,7 @@ public: * * @since before 0.11.0 */ - uint_fast16_t post(const Mastodon::API::v1 &call, string &answer); + uint16_t post(const Mastodon::API::v1 &call, string &answer); /*! * @brief Make a POST request which requires parameters. @@ -614,7 +614,7 @@ public: * * @since before 0.11.0 */ - uint_fast16_t post(const Mastodon::API::v1 &call, + uint16_t post(const Mastodon::API::v1 &call, const parametermap ¶meters, string &answer); @@ -633,7 +633,7 @@ public: * * @since before 0.11.0 */ - uint_fast16_t post(const string &call, + uint16_t post(const string &call, const parametermap ¶meters, string &answer); @@ -651,7 +651,7 @@ public: * * @since before 0.11.0 */ - uint_fast16_t put(const Mastodon::API::v1 &call, + uint16_t put(const Mastodon::API::v1 &call, const parametermap ¶meters, string &answer); @@ -669,7 +669,7 @@ public: * * @since before 0.11.0 */ - uint_fast16_t put(const string &call, + uint16_t put(const string &call, const parametermap ¶meters, string &answer); @@ -683,7 +683,7 @@ public: * * @since before 0.11.0 */ - uint_fast16_t del(const Mastodon::API::v1 &call, + uint16_t del(const Mastodon::API::v1 &call, const parametermap ¶meters); /*! @@ -699,7 +699,7 @@ public: * * @since before 0.11.0 */ - uint_fast16_t del(const string &call, + uint16_t del(const string &call, const parametermap ¶meters, string &answer);