Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
working on response mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed Feb 3, 2020
1 parent aa1de6e commit 0d9c500
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/andromeda/araserver/persona/GetDbArray.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ class GetDbArray {
fun likes(search: String){
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver")
val connection: Connection = DriverManager.getConnection(url)
var link = ""
println(password)
val statement = connection.createStatement()
val selectSql = "SELECT * from likes"
val resultSet = statement.executeQuery(selectSql)
while (resultSet.next())
{
if (resultSet.getString("name") == search){

}
}
}
}
5 changes: 5 additions & 0 deletions src/main/java/com/andromeda/araserver/persona/Responses.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.andromeda.araserver.persona

object Responses {
private val map = mapOf(0 to "not much of a fan", 1 to "not a big fan of TERM", 2 to "I kind a like TERM", 3 to "I enjoy TERM", 4 to "I really like it", 5 to "I am the biggest fan of TERM")
}

0 comments on commit 0d9c500

Please sign in to comment.