rcdbquery/src/main/kotlin/de/pheerai/rcdbquery/dataMappings/searchTerm/paramBuilder.kt

10 lines
235 B
Kotlin
Raw Normal View History

2020-05-01 15:44:45 +02:00
package de.pheerai.rcdbquery.dataMappings.searchTerm
import de.pheerai.rcdbquery.dsl.params.ParamsCollector
2020-05-01 15:44:45 +02:00
fun ParamsCollector.searchTerm(term: String) = also {
it[SearchTerm.paramKey] = listOf(
2020-05-01 15:44:45 +02:00
SearchTerm(term)
)
}