Implement status() without rxjava (#2999)

* Implement status() without rxjava

* Use lambda param named `throwable`

* Update DraftsActivity.kt
This commit is contained in:
Nik Clayton 2022-12-06 20:23:48 +01:00 committed by GitHub
commit 0d962c7cc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 16 deletions

View file

@ -165,9 +165,9 @@ interface MastodonApi {
): NetworkResult<Status>
@GET("api/v1/statuses/{id}")
fun status(
suspend fun status(
@Path("id") statusId: String
): Single<Status>
): NetworkResult<Status>
@GET("api/v1/statuses/{id}")
suspend fun statusAsync(