|
|
@ -18,6 +18,11 @@ public class RadioPlayer implements Device { |
|
|
|
|
|
|
|
public String getYouFMInfoByTime(int x) { |
|
|
|
if(x >= 5 && x <10 ) return YouFMInfo[0]; |
|
|
|
else if (x >= 10 && x < 14) return YouFMInfo[1]; |
|
|
|
else if (x >= 14 && x < 18) return YouFMInfo[2]; |
|
|
|
else if (x >= 18 && x < 20) return YouFMInfo[3]; |
|
|
|
else if (x >= 20 && x < 22) return YouFMInfo[4]; |
|
|
|
else if (x >= 22 && x <= 23) return YouFMInfo[5]; |
|
|
|
else return YouFMInfo[6]; |
|
|
|
} |
|
|
|
|
|
|
|