commonMain.app.moviebase.trakt.url.TraktUrlBuilder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trakt-api-jvm Show documentation
Show all versions of trakt-api-jvm Show documentation
Kotlin Multiplatform library to access the Trakt API.
package app.moviebase.trakt.url
import app.moviebase.trakt.TraktUrlParameter
import app.moviebase.trakt.TraktWebConfig
object TraktUrlBuilder {
/**
* Example: https://trakt.tv/users/andrewbloom
*/
fun buildUserPage(userId: String) = "${TraktWebConfig.WEBSITE_BASE_URL}/${TraktUrlParameter.USERS}/$userId"
/**
* Example: https://trakt.tv/comments/283816
*/
fun buildCommentPage(commentId: Int) = "${TraktWebConfig.WEBSITE_BASE_URL}/${TraktUrlParameter.COMMENTS}/$commentId"
}