From 80239b6b63197519691153839f56e86fe99e18cb Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 29 Apr 2023 20:34:18 -0700 Subject: Updated code to use enums for certain constants --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index bd2e1ac..b0ad51d 100644 --- a/README.md +++ b/README.md @@ -36,13 +36,15 @@ public class App { channelQuery.setLimit(75); List nijisanjiMembers = holodex.getChannels(channelQuery); - Video anotherVideo = holodex.getVideo(new VideoByVideoIdQueryBuilder().setVideoId("9-O_IWM3184").setLang(Language.ENGLISH)); + Video anotherVideo = holodex.getVideo(new VideoByVideoIdQueryBuilder().setVideoId("9-O_IWM3184").setLang( + List.of(Language.ENGLISH, Language.JAPANESE))); + System.out.println(anotherVideo.channel.name + " uploaded a video titled " + anotherVideo.title + " on " + anotherVideo.published_at); // SEARCHING THROUGH VIDEOS AND COMMENTS Object srv = holodex.searchVideo(new VideoSearchQueryBuilder().setOrg(List.of("Nijisanji")).setSort(Sort.NEWEST). - setTarget(List.of(Type.STREAM)).setPaginated(false).setLimit(10).setOffset(0) + setTarget(Type.STREAM).setPaginated(false).setLimit(10).setOffset(0) .setTopic(List.of("singing")) ); System.out.println("--- Search Results ---"); @@ -67,7 +69,6 @@ public class App { } } - ``` ## Download -- cgit v1.2.3