added Instance::streaming_api()
This commit is contained in:
parent
168f55a791
commit
0c0495b5f1
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.7)
|
||||
project (mastodon-cpp
|
||||
VERSION 0.7.18
|
||||
VERSION 0.7.19
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue