Browse Source

changes saved

feature-pr-USB-otherTests
sahar 3 years ago
parent
commit
ca035a17cb
  1. 11
      src/main/java/device/usbPlayer/UsbPlayer.java

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

@ -2,6 +2,7 @@ package device.usbPlayer;
import device.Device;
import java.lang.reflect.Method;
import java.util.ArrayList;
public class UsbPlayer implements Device {
@ -178,7 +179,13 @@ public class UsbPlayer implements Device {
@Override
public String[] getOptions() {
return new String[0];
Method[] methods=this.getClass().getDeclaredMethods();
String[] methodsList =new String[methods.length];
for (int i = 0; i <methods.length ; i++) {
methodsList[i]=methods[i].getName();
}
return methodsList;
}
@Override
@ -282,4 +289,6 @@ public class UsbPlayer implements Device {
//go to the last Song
setPlayTrack(this.getPlaylist().get(this.getPlaylist().size() - 1));
}
}
Loading…
Cancel
Save