Skip to content
v3.0.0

Contests

No. 003 Contest 3 endpoints

Suspending calls

Every PokeApi.get() snippet below is suspend — see Suspending calls for what that means and the getBlocking alternative.

ContestType

The ContestType class can be used to get data from /contest-type/{id or name}.

val contestType = PokeApi.get<ContestType>(id = 1)

ContestEffect

The ContestEffect class can be used to get data from /contest-effect/{id}.

val contestEffect = PokeApi.get<ContestEffect>(id = 1)

SuperContestEffects

The SuperContestEffects class can be used to get data from /super-contest-effect/{id}.

val superContestEffects = PokeApi.get<SuperContestEffects>(id = 1)