Add support for GET /api/v1/streaming/direct.

This commit is contained in:
tastytea 2019-09-20 02:38:56 +02:00
parent ff649fd2eb
commit d100d1a2b6
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
3 changed files with 7 additions and 2 deletions

View File

@ -380,7 +380,7 @@ strings and you can use unsupported fields in an `Entity` by converting it to
** [x] GET /api/v1/streaming/hashtag
** [x] GET /api/v1/streaming/hashtag/local
** [x] GET /api/v1/streaming/list
** [ ] GET /api/v1/streaming/direct
** [x] GET /api/v1/streaming/direct
==== Entities

View File

@ -61,6 +61,11 @@ void API::get_stream(const Mastodon::API::v1 &call,
strcall = "/api/v1/streaming/list";
break;
}
case v1::streaming_direct:
{
strcall = "/api/v1/streaming/direct";
break;
}
default:
{
const uint8_t err = static_cast<uint8_t>(error::INVALID_ARGUMENT);

View File

@ -276,7 +276,7 @@ namespace Mastodon
streaming_hashtag,
streaming_hashtag_local,
streaming_list,
// streaming_direct,
streaming_direct,
// Glitch-Soc
bookmarks,