@ -15,6 +18,44 @@ public class RadioPlayer implements Device {
}
ArrayList<String>Playlist=newArrayList<String>();
LocalDateTimenow=LocalDateTime.now();
inthour=now.getHour();
publicStringgetYouFMInfoByTime(intx){
if(x>=5&&x<10)returnYouFMInfo[0];
elseif(x>=10&&x<14)returnYouFMInfo[1];
elseif(x>=14&&x<18)returnYouFMInfo[2];
elseif(x>=18&&x<20)returnYouFMInfo[3];
elseif(x>=20&&x<22)returnYouFMInfo[4];
elseif(x>=22&&x<=23)returnYouFMInfo[5];
elsereturnYouFMInfo[6];
}
String[]YouFMInfo={"YOUFM Good Morning Show","YOUFM Worktime","YOUFM am Nachmittag","YOUFM am Abend","YOUFM Wir feiern euch","YOUFM Deutschrap ideal","YOUFM Junge Nacht der ARD"};
publicStringgetBR3InfoByTime(intx){
if(x>=5&&x<9)returnBR3Info[0];
elseif(x>=9&&x<12)returnBR3Info[1];
elseif(x==12)returnBR3Info[2];
elseif(x>=13&&x<16)returnBR3Info[3];
elseif(x>=16&&x<19)returnBR3Info[4];
elseif(x>=19&&x<21)returnBR3Info[5];
elseif(x>=21&&x<24)returnBR3Info[6];
elsereturnBR3Info[7];
}
String[]BR3Info={"Sebastian Winkler und die Frühaufdreher","BAYERN 3 - und DU mittendrin!","Update","Hits, Hits, Hits für euren Nachmittag","Die Zwei für euren Feierabend","Was geht?!","Matuschke - der etwas andere Abend","Die Nacht"};
publicStringgetAntenneBYInfoByTime(intx){
if(x>=5&&x<9)returnAntenneBYInfo[0];
elseif(x>=9&&x<12)returnAntenneBYInfo[1];
elseif(x>=12&&x<15)returnAntenneBYInfo[2];
elseif(x>=15&&x<19)returnAntenneBYInfo[3];
elsereturnAntenneBYInfo[4];
}
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="";
@ -114,4 +155,18 @@ public class RadioPlayer implements Device {