All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infobip.kafkistry.webapp.url.HistoryUrls.kt Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
package com.infobip.kafkistry.webapp.url

class HistoryUrls(base: String) : BaseUrls() {

    companion object {
        const val HISTORY = "/history"
        const val HISTORY_ALL = "/all"
        const val HISTORY_RECENT = "/recent"
    }

    private val showAll = Url("$base$HISTORY_ALL")
    private val showRecent = Url("$base$HISTORY_RECENT")
    private val showRecentCount = Url("$base$HISTORY_RECENT", listOf("count"))

    fun showAll() = showAll.render()
    fun showRecent() = showRecent.render()
    fun showRecentCount(count: Int) = showRecentCount.render("count" to count.toString())
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy