core / com.vmadalin.core.network.repositiories / MarvelRepository

MarvelRepository

class MarvelRepository

Repository module for handling marvel API network operations MarvelService.

Constructors

<init>

Repository module for handling marvel API network operations MarvelService.

MarvelRepository(service: MarvelService)

Functions

getCharacter

Get all info of Marvel character.

suspend fun getCharacter(id: Long): BaseResponse<CharacterResponse>

getCharacters

Get all Marvel characters by paged.

suspend fun getCharacters(offset: Int, limit: Int): BaseResponse<CharacterResponse>