aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/App.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/App.java')
-rw-r--r--src/main/java/App.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/App.java b/src/main/java/App.java
new file mode 100644
index 0000000..73691fb
--- /dev/null
+++ b/src/main/java/App.java
@@ -0,0 +1,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());
+ }
+ }
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage