
br.com.guiabolso.events.server.handler.ConvertingEventHandler.kt Maven / Gradle / Ivy
package br.com.guiabolso.events.server.handler
import br.com.guiabolso.events.model.RequestEvent
import br.com.guiabolso.events.model.ResponseEvent
interface ConvertingEventHandler : EventHandler {
fun convert(input: RequestEvent): T
suspend fun handle(input: RequestEvent, converted: T): ResponseEvent
override suspend fun handle(event: RequestEvent): ResponseEvent = handle(event, convert(event))
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy