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.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/App.java b/src/main/java/App.java
index 8e1090f..714ab27 100644
--- a/src/main/java/App.java
+++ b/src/main/java/App.java
@@ -1,6 +1,6 @@
import com.pina.Holodex;
import com.pina.HolodexException;
-import com.pina.LiveStream;
+import com.pina.datatypes.Livestream;
import com.pina.query.LiveStreamsQueryBuilder;
import java.util.List;
@@ -14,8 +14,8 @@ public class App
LiveStreamsQueryBuilder query = new LiveStreamsQueryBuilder();
query.setChannelId("UCBQd84IW8OvM8H5jftHdvmw");
query.setStatus("live");
- List<LiveStream> liveStreams = holodex.getLiveStreams(query);
- for (LiveStream stream : liveStreams) {
+ List<Livestream> livestreams = holodex.getLiveStreams(query);
+ for (Livestream stream : livestreams) {
System.out.println(stream.title + " is live with " + stream.live_viewers + " viewers" + stream.id);
}
} catch (HolodexException e) {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage