@ -15,6 +16,8 @@ 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];
@ -28,6 +31,16 @@ public class RadioPlayer implements Device {
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"};
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"};