Add support for setting a list's "exclusivity" option (#3932)
Fixes #3831
This commit is contained in:
parent
6766509977
commit
846289b8cc
55 changed files with 101 additions and 109 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue