diff options
| author | Pinapelz <yukais6@uci.edu> | 2023-04-29 20:34:18 -0700 |
|---|---|---|
| committer | Pinapelz <yukais6@uci.edu> | 2023-04-29 20:34:18 -0700 |
| commit | 80239b6b63197519691153839f56e86fe99e18cb (patch) | |
| tree | 32be637b71369a7411e16104a63efc48771ef1fd /README.md | |
| parent | 9684c18084458c26569fad4574657eaca046d2ec (diff) | |
Updated code to use enums for certain constants
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -36,13 +36,15 @@ public class App { channelQuery.setLimit(75); List<Channel> 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 |
