Browse Source

Vars and setters and getters

feature-pr-USB-PlayTest
sahar 3 years ago
parent
commit
1d5a72debb
  1. 45
      src/main/java/device/usbPlayer/UsbPlayer.java

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

@ -2,9 +2,50 @@ package device.usbPlayer;
import device.Device;
import java.util.ArrayList;
public class UsbPlayer implements Device {
private int Lautstaerke = 0;
private ArrayList<String> Playlist = new ArrayList<String>();
private String playTrack = "";
private Boolean isConnected;
private Boolean isDefect;
int Lautstaerke = 0;
//*********setters und getters********
public ArrayList<String> getPlaylist() {
return Playlist;
}
public void setPlaylist(ArrayList<String> playlist) {
Playlist = playlist;
}
public Boolean getDefect() {
return isDefect;
}
public void setDefect(Boolean defect) {
isDefect = defect;
}
public Boolean getConnected() {
return isConnected;
}
public void setConnected(Boolean connected) {
isConnected = connected;
}
public String getPlayTrack() {
return playTrack;
}
public void setPlayTrack(String playTrack) {
this.playTrack = playTrack;
}
public void setLautstaerke(int ls) {
if (ls <= 100) {
@ -24,7 +65,7 @@ public class UsbPlayer implements Device {
Lautstaerke = 100;
}
}
//*********setters und getters********
@Override
public void quieter() {
if(Lautstaerke > 0) {

Loading…
Cancel
Save