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

io.github.wulkanowy.sdk.hebe.HebeUtils.kt Maven / Gradle / Ivy

Go to download

Unified way of retrieving data from the UONET+ register through mobile api and scraping api

There is a newer version: 2.7.0
Show newest version
package io.github.wulkanowy.sdk.hebe

internal fun  ApiResponse.getEnvelopeOrThrowError(): T? {
    if (envelope == null) {
        when (status.code) {
            // 100 -> "Użytkownik nie jest uprawniony do przeglądania żądanych danych"
            // todo: add more codes
            else -> error("Unknown error: ${status.message}")
        }
    }
    return envelope
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy