@ -7,9 +7,14 @@ public interface Device {
int getVolume();
void next();
void prev();
//get deviceName, Album and current Item
String getInfoText();
//get a list of public methods
String[] getOptions();
String chooseOption();
//get an Item of the Album
String chooseItem(int itemNr);
// get the actual album
String getItemList();
String play();
}
@ -73,7 +73,12 @@ public class CDPlayer implements Device {
@Override
public String chooseOption() {
public String chooseItem(int itemNr) {
return null;
public String getItemList() {
@ -157,10 +157,16 @@ public class RadioPlayer implements Device {
public String play() {
if (regionPlaylist.contains(playedStation))
@ -151,10 +151,16 @@ public class UsbPlayer implements Device {
String result = "USB : ";