Skip to content
Snippets Groups Projects
Commit 9bdc28dc authored by Hoai Viet Nguyen's avatar Hoai Viet Nguyen
Browse files

add switch case to getDegreeByCity-Function

parent f4dc92dc
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,11 @@ class MyHandler : HttpHandler {
}
private fun getDegreeByCity(city: String?): Int{
// TODO Get degree from DB or WS
return 20
return when (city) {
"koeln" -> 22
"gummersbach" -> 20
else -> 15
}
}
private fun getQueryByName(query: String, queryName: String): String? {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment