@ -57,9 +60,6 @@ public class RadioPlayer implements Device {
String[]AntenneBYInfo={"ANTENNE BAYERN Guten Morgen Bayern","ANTENNE BAYERN bei der Arbeit","ANTENNE BAYERN am Nachmittag","ANTENNE BAYERN am Abend","ANTENNE BAYERN Hit-Nacht"};
intLautstaerke=0;
StringplayTrack="";
publicvoidsetLautstaerke(intlautstaerke){
Lautstaerke=lautstaerke;
}
@ -67,50 +67,46 @@ public class RadioPlayer implements Device {
publicvoidchangeRegion(Stringregion){
switch(region){
case"BY":
Playlist.clear();
Playlist.add("Antenne Bayern");
Playlist.add("Bayern 1");
Playlist.add("Bayern 3");
Playlist.add("Hit Radio N1");
playTrack=Playlist.get(0);
regionPlaylist.clear();
regionPlaylist.add("Antenne Bayern");
regionPlaylist.add("Bayern 1");
regionPlaylist.add("Bayern 3");
regionPlaylist.add("Hit Radio N1");
playedStation=regionPlaylist.get(0);
break;
case"HE":
Playlist.clear();
Playlist.add("Hit Radio FFH");
Playlist.add("HR 1");
Playlist.add("HR 3");
Playlist.add("YouFM");
playTrack=Playlist.get(0);
regionPlaylist.clear();
regionPlaylist.add("Hit Radio FFH");
regionPlaylist.add("HR 1");
regionPlaylist.add("HR 3");
regionPlaylist.add("YouFM");
playedStation=regionPlaylist.get(0);
break;
case"BW":
Playlist.clear();
Playlist.add("DASDING");
Playlist.add("SWR 1");
Playlist.add("SWR 3");
Playlist.add("sunshine live");
playTrack=Playlist.get(0);
break;
default:
Playlist.clear();
Playlist.add("YouFM");
Playlist.add("Teddy");
Playlist.add("MegaHits");
playTrack=Playlist.get(0);
regionPlaylist.clear();
regionPlaylist.add("DASDING");
regionPlaylist.add("SWR 1");
regionPlaylist.add("SWR 3");
regionPlaylist.add("sunshine live");
playedStation=regionPlaylist.get(0);
break;
}
}
@Override
publicvoidlouder(){
if(Lautstaerke<100){Lautstaerke+=1;}
elseLautstaerke=100;
if(Lautstaerke<100){
Lautstaerke+=1;
}elseLautstaerke=100;
}
@Override
publicvoidquieter(){
if(Lautstaerke>0){Lautstaerke-=1;}
elseLautstaerke=0;
if(Lautstaerke>0){
Lautstaerke-=1;
}elseLautstaerke=0;
}
@Override
publicintgetVolume(){
returnLautstaerke;
@ -118,17 +114,19 @@ public class RadioPlayer implements Device {