io.github.kryszak.gwatlin.clients.items.SkinsClient.kt Maven / Gradle / Ivy
The newest version!
package io.github.kryszak.gwatlin.clients.items
import io.github.kryszak.gwatlin.api.items.model.skins.Skin
import io.github.kryszak.gwatlin.http.BaseHttpClient
internal class SkinsClient : BaseHttpClient() {
private val skinsEndpoint = "skins"
fun getSkinIds(): List {
return getRequest(skinsEndpoint)
}
fun getSkins(ids: List, language: io.github.kryszak.gwatlin.api.ApiLanguage?): List {
val params = ids.joinToString(",")
return getRequest("$skinsEndpoint?ids=$params", language)
}
}