Add support for GET /api/v1/streaming/direct.
This commit is contained in:
parent
ff649fd2eb
commit
d100d1a2b6
|
@ -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
|
||||||
** [x] GET /api/v1/streaming/hashtag/local
|
** [x] GET /api/v1/streaming/hashtag/local
|
||||||
** [x] GET /api/v1/streaming/list
|
** [x] GET /api/v1/streaming/list
|
||||||
** [ ] GET /api/v1/streaming/direct
|
** [x] GET /api/v1/streaming/direct
|
||||||
|
|
||||||
==== Entities
|
==== Entities
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,11 @@ void API::get_stream(const Mastodon::API::v1 &call,
|
||||||
strcall = "/api/v1/streaming/list";
|
strcall = "/api/v1/streaming/list";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case v1::streaming_direct:
|
||||||
|
{
|
||||||
|
strcall = "/api/v1/streaming/direct";
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
const uint8_t err = static_cast<uint8_t>(error::INVALID_ARGUMENT);
|
const uint8_t err = static_cast<uint8_t>(error::INVALID_ARGUMENT);
|
||||||
|
|
|
@ -276,7 +276,7 @@ namespace Mastodon
|
||||||
streaming_hashtag,
|
streaming_hashtag,
|
||||||
streaming_hashtag_local,
|
streaming_hashtag_local,
|
||||||
streaming_list,
|
streaming_list,
|
||||||
// streaming_direct,
|
streaming_direct,
|
||||||
|
|
||||||
// Glitch-Soc
|
// Glitch-Soc
|
||||||
bookmarks,
|
bookmarks,
|
||||||
|
|
Reference in New Issue