commonMain.com.bselzer.gw2.v2.client.instance.WorldBossClient.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of v2-client Show documentation
Show all versions of v2-client Show documentation
Ktor client for v2 endpoints of the Guild Wars 2 API.
The newest version!
package com.bselzer.gw2.v2.client.instance
import com.bselzer.gw2.v2.model.worldboss.WorldBossId
import io.ktor.client.*
/**
* The world boss client.
* @see the wiki
*/
class WorldBossClient(httpClient: HttpClient, configuration: Gw2ClientConfiguration) : BaseClient(httpClient, configuration) {
private companion object {
const val WORLD_BOSSES = "worldbosses"
}
/**
* @return the ids of the daily world bosses
* @see the wiki
*/
suspend fun ids(): List = getIds(path = WORLD_BOSSES)
}