Files
scavengerhunt-api/src/main/kotlin/net/halfbinary/scavengerhuntapi/model/converter/HunterLeaderboardConverter.kt

10 lines
347 B
Kotlin

package net.halfbinary.scavengerhuntapi.model.converter
import net.halfbinary.scavengerhuntapi.model.domain.HunterLeaderboardEntry
import net.halfbinary.scavengerhuntapi.model.response.HunterLeaderboardResponse
fun HunterLeaderboardEntry.toResponse() = HunterLeaderboardResponse(
rank = rank,
hunterName = hunterName,
score = score
)