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

commonMain.com.bselzer.gw2.v2.client.instance.BuildClient.kt Maven / Gradle / Ivy

The newest version!
package com.bselzer.gw2.v2.client.instance

import com.bselzer.gw2.v2.model.build.Build
import com.bselzer.gw2.v2.model.build.BuildId
import io.ktor.client.*

/**
 * The build client.
 * @see the wiki
 */
class BuildClient(httpClient: HttpClient, configuration: Gw2ClientConfiguration) : BaseClient(httpClient, configuration) {
    private companion object {
        const val BUILD = "build"
    }

    /**
     * @return the current build id
     */
    suspend fun buildId(): BuildId = getSingle(path = BUILD, instance = { Build() }).id
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy