Browse Source

changes on Interface 4.

feature-pr-RadioPlayer-getItemList
JPANZO 3 years ago
parent
commit
0e9662561a
  1. 7
      src/main/java/device/Device.java
  2. 10
      src/main/java/device/cdPlayer/CDPlayer.java
  3. 10
      src/main/java/device/radioPlayer/RadioPlayer.java
  4. 10
      src/main/java/device/usbPlayer/UsbPlayer.java

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

@ -7,6 +7,7 @@ public interface Device {
int getVolume(); int getVolume();
void next(); void next();
void prev(); void prev();
String play();
//get deviceName, Album and current Item //get deviceName, Album and current Item
String getInfoText(); String getInfoText();
//get a list of public methods //get a list of public methods
@ -15,6 +16,8 @@ public interface Device {
String chooseItem(int itemNr); String chooseItem(int itemNr);
// get the actual album // get the actual album
String[] getItemList(); String[] getItemList();
String play();
//mute the Volume and returns an Info.
String mute();
//unmute the Volume and returns an Info.
String unmute();
} }

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

@ -90,6 +90,16 @@ public class CDPlayer implements Device {
return loadedCD.getPlayList(); return loadedCD.getPlayList();
} }
@Override
public String mute() {
return null;
}
@Override
public String unmute() {
return null;
}
@Override @Override
public String play() { public String play() {
if(isCdFlapOpen()){ if(isCdFlapOpen()){

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

@ -166,6 +166,16 @@ public class RadioPlayer implements Device {
return null; return null;
} }
@Override
public String mute() {
return null;
}
@Override
public String unmute() {
return null;
}
@Override @Override
public String play() { public String play() {

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

@ -160,6 +160,16 @@ public class UsbPlayer implements Device {
return null; return null;
} }
@Override
public String mute() {
return null;
}
@Override
public String unmute() {
return null;
}
@Override @Override
public String play() { public String play() {

Loading…
Cancel
Save