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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy