Package-level declarations

This package contains the public APIs.

Types

Link copied to clipboard
internal data class ApiResponse<API_RESPONSE, ERROR_RESPONSE>(val result: API_RESPONSE? = null, val failure: ERROR_RESPONSE? = null)

Internal class which maps the Spotify API responses.

Link copied to clipboard
internal class AuthStorage

AuthStorage is responsible to store the accessToken.

Link copied to clipboard
internal class ConfigProvider

ConfigProvider is responsible for providing the different Config.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
internal annotation class ExcludeFromCoverage

Exclude from coverage annotation is used to exclude the classes from the code coverage report.

Link copied to clipboard
object KoVibesApi

KoVibesApi is the entry class for your application.

Link copied to clipboard
internal class KtorService(ktorEngine: () -> HttpClientEngine, ktorLogger: () -> Logger, logLevel: () -> LogLevel, authStorage: AuthStorage)

Ktor service is responsible to provide the client to call the Spotify APIs.

Link copied to clipboard
interface SpotifyService

Spotify service interface provides all the methods to fetch data from the Spotify API.

Functions

Link copied to clipboard
internal expect fun getKtorEngine(): HttpClientEngine
Link copied to clipboard
internal expect fun getKtorLogger(): Logger