Add support for setting a list's "exclusivity" option (#3932)

Fixes #3831
This commit is contained in:
Nik Clayton 2023-08-06 20:29:34 +02:00 committed by GitHub
commit 846289b8cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
55 changed files with 101 additions and 109 deletions

View file

@ -538,14 +538,16 @@ interface MastodonApi {
@FormUrlEncoded
@POST("api/v1/lists")
suspend fun createList(
@Field("title") title: String
@Field("title") title: String,
@Field("exclusive") exclusive: Boolean?
): NetworkResult<MastoList>
@FormUrlEncoded
@PUT("api/v1/lists/{listId}")
suspend fun updateList(
@Path("listId") listId: String,
@Field("title") title: String
@Field("title") title: String,
@Field("exclusive") exclusive: Boolean?
): NetworkResult<MastoList>
@DELETE("api/v1/lists/{listId}")