Implement status() without rxjava (#2999)
* Implement status() without rxjava * Use lambda param named `throwable` * Update DraftsActivity.kt
This commit is contained in:
parent
0f11e5c062
commit
0d962c7cc1
3 changed files with 15 additions and 16 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue