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