Skip to content
v3.0.0

Encounters

No. 004 Encounter 3 endpoints

Suspending calls

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

EncounterMethod

The EncounterMethod class can be used to retrieve information about encounter methods from the /encounter-method/{id or name} endpoints of the API.

val encounterMethod = PokeApi.get<EncounterMethod>(id = 1)

EncounterCondition

The EncounterCondition class can be used to retrieve information about encounter conditions from the /encounter-condition/{id or name} endpoints of the API.

val encounterCondition = PokeApi.get<EncounterCondition>(id = 1)

EncounterConditionValue

The EncounterConditionValue class can be used to retrieve information about encounter condition values from the /encounter-condition-values/{id or name} endpoints of the API.

val encounterConditionValue = PokeApi.get<EncounterConditionValue>(id = 1)