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

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)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy