io.github.kryszak.gwatlin.clients.items.FinishersClient.kt Maven / Gradle / Ivy
The newest version!
package io.github.kryszak.gwatlin.clients.items
import io.github.kryszak.gwatlin.api.items.model.finisher.Finisher
import io.github.kryszak.gwatlin.http.BaseHttpClient
internal class FinishersClient : BaseHttpClient() {
private val finisherEndpoint = "finishers"
fun getFinisherIds(): List {
return getRequest(finisherEndpoint)
}
fun getFinishers(ids: List, language: io.github.kryszak.gwatlin.api.ApiLanguage?): List {
val params = ids.joinToString(",")
return getRequest("$finisherEndpoint?ids=$params", language)
}
}