Endpoints.kt 682 Bytes
Newer Older
1 2
package fr.chenry.android.freshrss.store.api

3
class Endpoints(private val base: String) {
4 5 6 7 8 9 10
    val loginEndpoint = "${this.base}/accounts/ClientLogin"
    val tokenEndpoint = "${this.base}/reader/api/0/token"
    val subscriptionEndpoint = "${this.base}/reader/api/0/subscription/list"
    val unreadCountEndpoint = "${this.base}/reader/api/0/unread-count"
    fun streamContentsEndpoint(id: String) = "${this.base}/reader/api/0/stream/contents/$id"
    val tagEndpoint = "${this.base}/reader/api/0/tag/list"
    val unreadItemsEndpoint = "${this.base}/reader/api/0/stream/contents/user/-/state/com.google/reading-list"
11
    val editTagEnpoint = "${this.base}/reader/api/0/edit-tag"
12
}