aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <donaldshan1@outlook.com>2023-04-06 11:12:32 -0700
committerPinapelz <donaldshan1@outlook.com>2023-04-06 11:12:32 -0700
commitd45d80e6cb22555e75bddbdcc886d9f8c5fe20a8 (patch)
treeb7ac5d0614e3479a661f301c4bbfeb477fd3484b
parentab71614c84039ce65e9465ba024561939e24af05 (diff)
Changed VideoMetadataQueryBuilder.java to VideoByVideoIdQueryBuilder.java0.04
Removed confusing naming
-rw-r--r--README.md2
-rw-r--r--src/main/java/App.java4
-rw-r--r--src/main/java/com/pina/Holodex.java4
-rw-r--r--src/main/java/com/pina/query/VideoByVideoIdQueryBuilder.java (renamed from src/main/java/com/pina/query/VideoMetadataQueryBuilder.java)8
4 files changed, 9 insertions, 9 deletions
diff --git a/README.md b/README.md
index 83f5f05..dd80bdd 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ channelQuery.setOrg("Nijisanji");
channelQuery.setLimit(75);
List<Channel> nijisanjiMembers = holodex.getChannels(channelQuery);
-Video anotherVideo = holodex.getVideo(new VideoMetadataQueryBuilder().setVideoId("9-O_IWM3184").setLang("en"));
+Video anotherVideo = holodex.getVideo(new VideoByVideoIdQueryBuilder().setVideoId("9-O_IWM3184").setLang("en"));
System.out.println(anotherVideo.channel.name + " uploaded a video titled " + anotherVideo.title +
" on " + anotherVideo.published_at);
```
diff --git a/src/main/java/App.java b/src/main/java/App.java
index 65943e3..383d9b5 100644
--- a/src/main/java/App.java
+++ b/src/main/java/App.java
@@ -4,7 +4,7 @@ import com.pina.datatypes.Channel;
import com.pina.datatypes.SimpleVideo;
import com.pina.datatypes.Video;
import com.pina.query.ChannelQueryBuilder;
-import com.pina.query.VideoMetadataQueryBuilder;
+import com.pina.query.VideoByVideoIdQueryBuilder;
import com.pina.query.VideoQueryBuilder;
import java.util.List;
@@ -31,7 +31,7 @@ public class App
channelQuery.setLimit(75);
List<Channel> nijisanjiMembers = holodex.getChannels(channelQuery);
- Video anotherVideo = holodex.getVideo(new VideoMetadataQueryBuilder().setVideoId("9-O_IWM3184").setLang("en"));
+ Video anotherVideo = holodex.getVideo(new VideoByVideoIdQueryBuilder().setVideoId("9-O_IWM3184").setLang("en"));
System.out.println(anotherVideo.channel.name + " uploaded a video titled " + anotherVideo.title +
" on " + anotherVideo.published_at);
} catch (HolodexException ex) {
diff --git a/src/main/java/com/pina/Holodex.java b/src/main/java/com/pina/Holodex.java
index e436e39..931021f 100644
--- a/src/main/java/com/pina/Holodex.java
+++ b/src/main/java/com/pina/Holodex.java
@@ -4,7 +4,7 @@ import com.pina.datatypes.Channel;
import com.pina.datatypes.SimpleVideo;
import com.pina.datatypes.Video;
import com.pina.query.ChannelQueryBuilder;
-import com.pina.query.VideoMetadataQueryBuilder;
+import com.pina.query.VideoByVideoIdQueryBuilder;
import com.pina.query.VideoQueryBuilder;
import com.pina.query.VideosByChannelIDQueryBuilder;
import okhttp3.OkHttpClient;
@@ -89,7 +89,7 @@ public class Holodex {
return executeCall(call);
}
- public Video getVideo(VideoMetadataQueryBuilder query) throws HolodexException {
+ public Video getVideo(VideoByVideoIdQueryBuilder query) throws HolodexException {
Call<Video> call = service.getVideo(query.getVideoId(), query.getLang(), query.getC());
return executeCall(call);
}
diff --git a/src/main/java/com/pina/query/VideoMetadataQueryBuilder.java b/src/main/java/com/pina/query/VideoByVideoIdQueryBuilder.java
index bccad79..b996028 100644
--- a/src/main/java/com/pina/query/VideoMetadataQueryBuilder.java
+++ b/src/main/java/com/pina/query/VideoByVideoIdQueryBuilder.java
@@ -1,7 +1,7 @@
package com.pina.query;
-public class VideoMetadataQueryBuilder {
+public class VideoByVideoIdQueryBuilder {
/***
* Used to get the metadata of a single video when given the video ID
*/
@@ -13,7 +13,7 @@ public class VideoMetadataQueryBuilder {
return videoId;
}
- public VideoMetadataQueryBuilder setVideoId(String videoId) {
+ public VideoByVideoIdQueryBuilder setVideoId(String videoId) {
this.videoId = videoId;
return this;
}
@@ -22,7 +22,7 @@ public class VideoMetadataQueryBuilder {
return lang;
}
- public VideoMetadataQueryBuilder setLang(String lang) {
+ public VideoByVideoIdQueryBuilder setLang(String lang) {
this.lang = lang;
return this;
}
@@ -31,7 +31,7 @@ public class VideoMetadataQueryBuilder {
return c;
}
- public VideoMetadataQueryBuilder setC(String c) {
+ public VideoByVideoIdQueryBuilder setC(String c) {
this.c = c;
return this;
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage