aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/pina/query/VideoQueryBuilder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/pina/query/VideoQueryBuilder.java')
-rw-r--r--src/main/java/com/pina/query/VideoQueryBuilder.java149
1 files changed, 135 insertions, 14 deletions
diff --git a/src/main/java/com/pina/query/VideoQueryBuilder.java b/src/main/java/com/pina/query/VideoQueryBuilder.java
index bd6d1b0..67acd1b 100644
--- a/src/main/java/com/pina/query/VideoQueryBuilder.java
+++ b/src/main/java/com/pina/query/VideoQueryBuilder.java
@@ -1,22 +1,39 @@
package com.pina.query;
-
public class VideoQueryBuilder {
- private String videoId;
+ /***
+ * Query parameters for /api/v2/live and /api/v2/videos
+ * Query Live and Upcoming Videos
+ */
+ private String channelId;
+ private String id;
+ private String include;
private String lang;
- private String c;
+ private Integer limit;
+ private Integer maxUpcomingHours;
+ private String mentionedChannelId;
+ private Integer offset;
+ private String order;
+ private String org;
+ private String paginated;
+ private String sort;
+ private String status;
+ private String topic;
+ private String type;
- public String getVideoId() {
- return videoId;
+ public VideoQueryBuilder setChannelId(String channelId) {
+ this.channelId = channelId;
+ return this;
}
- public VideoQueryBuilder setVideoId(String videoId) {
- this.videoId = videoId;
+ public VideoQueryBuilder setId(String id) {
+ this.id = id;
return this;
}
- public String getLang() {
- return lang;
+ public VideoQueryBuilder setInclude(String include) {
+ this.include = include;
+ return this;
}
public VideoQueryBuilder setLang(String lang) {
@@ -24,14 +41,118 @@ public class VideoQueryBuilder {
return this;
}
- public String getC() {
- return c;
+ public VideoQueryBuilder setLimit(Integer limit) {
+ this.limit = limit;
+ return this;
+ }
+
+ public VideoQueryBuilder setMaxUpcomingHours(Integer maxUpcomingHours) {
+ this.maxUpcomingHours = maxUpcomingHours;
+ return this;
+ }
+
+ public VideoQueryBuilder setMentionedChannelId(String mentionedChannelId) {
+ this.mentionedChannelId = mentionedChannelId;
+ return this;
+ }
+
+ public VideoQueryBuilder setOffset(Integer offset) {
+ this.offset = offset;
+ return this;
+ }
+
+ public VideoQueryBuilder setOrder(String order) {
+ this.order = order;
+ return this;
+ }
+
+ public VideoQueryBuilder setOrg(String org) {
+ this.org = org;
+ return this;
+ }
+
+ public VideoQueryBuilder setPaginated(String paginated) {
+ this.paginated = paginated;
+ return this;
+ }
+
+ public VideoQueryBuilder setSort(String sort) {
+ this.sort = sort;
+ return this;
+ }
+
+ public VideoQueryBuilder setStatus(String status) {
+ this.status = status;
+ return this;
}
- public VideoQueryBuilder setC(String c) {
- this.c = c;
+ public VideoQueryBuilder setTopic(String topic) {
+ this.topic = topic;
return this;
}
+ public VideoQueryBuilder setType(String type) {
+ this.type = type;
+ return this;
+ }
-}
+ public String getChannelId() {
+ return channelId;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public String getInclude() {
+ return include;
+ }
+
+ public String getLang() {
+ return lang;
+ }
+
+ public Integer getLimit() {
+ return limit;
+ }
+
+ public Integer getMaxUpcomingHours() {
+ return maxUpcomingHours;
+ }
+
+ public String getMentionedChannelId() {
+ return mentionedChannelId;
+ }
+
+ public Integer getOffset() {
+ return offset;
+ }
+
+ public String getOrder() {
+ return order;
+ }
+
+ public String getOrg() {
+ return org;
+ }
+
+ public String getPaginated() {
+ return paginated;
+ }
+
+ public String getSort() {
+ return sort;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public String getTopic() {
+ return topic;
+ }
+
+ public String getType() {
+ return type;
+ }
+} \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage