Commit 6024117a authored by jade.woodward's avatar jade.woodward

Added a method to get a song's title from database

parent 8a7d98a4
......@@ -149,6 +149,18 @@ public class databaseInterface {
return attributes;
}
/*
* gets the title od a song from the database by the database song id
*/
public String getSongTitle(String id){
String url = "https://cs2s.yorkdc.net/~jade.woodward/mobile-app-development/getsongtitlebyid.php";
HashMap<String, String> params = new HashMap<>();
params.put("id", id);
return getFromDatabase(url, params);
}
/*
* one string input - should still be in 123 format though
* gets a list of song ids from the database
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment