Browse Source

changes in the Interface 0.2.

feature-pr-cdPlayerGetOptions
JPANZO 3 years ago
parent
commit
31e51d9a3f
  1. 7
      src/main/java/device/Device.java
  2. 7
      src/main/java/device/cdPlayer/CDPlayer.java
  3. 8
      src/main/java/device/radioPlayer/RadioPlayer.java
  4. 8
      src/main/java/device/usbPlayer/UsbPlayer.java

7
src/main/java/device/Device.java

@ -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();
}

7
src/main/java/device/cdPlayer/CDPlayer.java

@ -73,7 +73,12 @@ public class CDPlayer implements Device {
}
@Override
public String chooseOption() {
public String chooseItem(int itemNr) {
return null;
}
@Override
public String getItemList() {
return null;
}

8
src/main/java/device/radioPlayer/RadioPlayer.java

@ -157,10 +157,16 @@ public class RadioPlayer implements Device {
}
@Override
public String chooseOption() {
public String chooseItem(int itemNr) {
return null;
}
@Override
public String getItemList() {
return null;
}
@Override
public String play() {
if (regionPlaylist.contains(playedStation))

8
src/main/java/device/usbPlayer/UsbPlayer.java

@ -151,10 +151,16 @@ public class UsbPlayer implements Device {
}
@Override
public String chooseOption() {
public String chooseItem(int itemNr) {
return null;
}
@Override
public String getItemList() {
return null;
}
@Override
public String play() {
String result = "USB : ";

Loading…
Cancel
Save