added Instance::streaming_api()

This commit is contained in:
tastytea 2018-04-01 01:58:03 +02:00
parent 168f55a791
commit 0c0495b5f1
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
4 changed files with 6 additions and 7 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7)
project (mastodon-cpp
VERSION 0.7.18
VERSION 0.7.19
LANGUAGES CXX
)

View File

@ -183,7 +183,7 @@ public:
*/
const double get_double(const string &key) const;
// TODO: Investigate if uint8_t would be better
// TODO: Maybe an enum would be better?
/*!
* @brief Returns the value of key as bool
*

View File

@ -72,7 +72,7 @@ const string Instance::version() const
return get_string("version");
}
const std::vector<string> Instance::urls() const
const string Instance::streaming_api() const
{
return get_vector("urls");
return get_string("urls.streaming_api");
}

View File

@ -90,11 +90,10 @@ namespace Mastodon
*/
const string version() const;
// TODO: Find out what Instance.urls is about
/*!
* @brief Returns the a vector of URLs for the streaming API (?)
* @brief Returns the URL for the streaming API
*/
const std::vector<string> urls() const;
const string streaming_api() const;
};
}