Add or remove from lists in AccountActivity

This commit is contained in:
kyori19 2022-11-13 06:05:55 +09:00
commit 45cc000d07
No known key found for this signature in database
GPG key ID: F7BDE7DD42BF366A
10 changed files with 465 additions and 1 deletions

View file

@ -481,6 +481,11 @@ interface MastodonApi {
@GET("/api/v1/lists")
suspend fun getLists(): NetworkResult<List<MastoList>>
@GET("/api/v1/accounts/{id}/lists")
suspend fun getListsIncludesAccount(
@Path("id") accountId: String
): NetworkResult<List<MastoList>>
@FormUrlEncoded
@POST("api/v1/lists")
suspend fun createList(