Resets the paging3 changes of 3159 back to the (java) fragment code before.

Should be the basis for further not-so-rattling improvements.
This commit is contained in:
Lakoja 2023-09-09 21:11:23 +02:00
commit add62129f8
21 changed files with 2279 additions and 1565 deletions

View file

@ -144,6 +144,14 @@ interface MastodonApi {
@Query("exclude_types[]") excludes: Set<Notification.Type>? = null
): Response<List<Notification>>
@GET("api/v1/notifications")
fun notificationsOld(
@Query("max_id") maxId: String?,
@Query("since_id") sinceId: String?,
@Query("limit") limit: Int?,
@Query("exclude_types[]") excludes: Set<Notification.Type>?
): Single<Response<List<Notification>>>
/** Fetch a single notification */
@GET("api/v1/notifications/{id}")
suspend fun notification(
@ -177,6 +185,9 @@ interface MastodonApi {
@POST("api/v1/notifications/clear")
suspend fun clearNotifications(): Response<ResponseBody>
@POST("api/v1/notifications/clear")
fun clearNotificationsOld(): Single<ResponseBody>
@FormUrlEncoded
@PUT("api/v1/media/{mediaId}")
suspend fun updateMedia(