Files
dc-project/src/main/kotlin/fr/dcproject/entity/request/Request.kt
Fabrice Lecomte 471013984c Continue to implement opinion
improve target reference
Improve Tests for Opinion
fix SQL:upsert_opinion
2020-02-19 12:33:29 +01:00

12 lines
284 B
Kotlin

package fr.dcproject.entity.request
import io.ktor.application.ApplicationCall
interface Request
interface RequestBuilder<E> {
suspend fun getContent(call: ApplicationCall): E
}
suspend fun <E> ApplicationCall.getContent(builder: RequestBuilder<E>) = builder.getContent(this)