Resource

actual abstract class Resource(source)
expect abstract class Resource(source)

Internal Represents a Resource of Deezer API.

Inspired in Deezer Python Resource

Author

Kingg22

Inheritors

actual abstract class Resource(source)

Constructors

Link copied to clipboard
constructor()
expect constructor()
constructor()

Properties

Link copied to clipboard
actual abstract val id: Long
expect abstract val id: Long
actual abstract val id: Long
Link copied to clipboard
actual abstract val type: String
expect abstract val type: String
actual abstract val type: String

Functions

Link copied to clipboard
actual open suspend fun reload(): Resource
actual abstract suspend fun reload(client: DeezerApiClient): Resource

internal fun reload(client: DeezerApiClient, coroutineContext: ERROR CLASS: Symbol not found for CoroutineContext = EmptyCoroutineContext): Resource
internal fun reload(client: DeezerApiJavaClient, coroutineContext: ERROR CLASS: Symbol not found for CoroutineContext = EmptyCoroutineContext): Resource

Reloads the resource from the API, getting all of its full properties if it was initially obtained partially, or it's outdated

expect abstract suspend fun reload(client: DeezerApiClient): Resource

Reloads the current resource from the API, getting all of its full properties if it was initially obtained partially, or it's outdated

actual abstract suspend fun reload(client: DeezerApiClient): Resource
Link copied to clipboard

Reloads the resource from the API, getting all of its full properties if it was initially obtained partially, or it's outdated

Link copied to clipboard
fun reloadFuture(coroutineContext: ERROR CLASS: Symbol not found for CoroutineContext = EmptyCoroutineContext): CompletableFuture<out Resource>
internal fun reloadFuture(client: DeezerApiClient, coroutineContext: ERROR CLASS: Symbol not found for CoroutineContext = EmptyCoroutineContext): CompletableFuture<Resource>
internal fun reloadFuture(client: DeezerApiJavaClient, coroutineContext: ERROR CLASS: Symbol not found for CoroutineContext = EmptyCoroutineContext): CompletableFuture<Resource>

Reloads the resource from the API with CompletableFuture, getting all of its full properties if it was initially obtained partially, or it's outdated.