blob: 73691fb4266b81052134cd46443bd825571d93e4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import com.pina.Holodex;
import com.pina.HolodexException;
import com.pina.LiveStream;
import java.util.List;
public class App
{
public static void main( String[] args )
{
Holodex holodex = new Holodex();
try {
List<LiveStream> liveStreams = holodex.getLiveStreams();
for (LiveStream stream : liveStreams) {
System.out.println(stream.title + " by " + stream.channel.name);
}
} catch (HolodexException e) {
System.err.println("Failed to get live streams: " + e.getMessage());
}
}
}
|