core / com.vmadalin.core.network.services / MarvelService

MarvelService

interface MarvelService

Representation interface of the Marvel API endpoints.

Functions

getCharacter

Fetches a single character resource. It is the canonical URI for any character resource provided by the API.

abstract suspend fun getCharacter(id: Long, apiKey: String, hash: String, timestamp: String): BaseResponse<CharacterResponse>

getCharacters

Fetches lists of comic characters with optional filters.

abstract suspend fun getCharacters(apiKey: String, hash: String, timestamp: String, offset: Int, limit: Int): BaseResponse<CharacterResponse>