aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/pina/query/VideoSearchQueryBuilder.java
diff options
context:
space:
mode:
authorPinapelz <donaldshan1@outlook.com>2023-04-16 12:32:18 -0700
committerPinapelz <donaldshan1@outlook.com>2023-04-16 12:32:18 -0700
commit01fa51f3fde9063b1a78c48ca32e9e121c61da2f (patch)
tree3d90982a1080353c1b152bb5995babea9d64d605 /src/main/java/com/pina/query/VideoSearchQueryBuilder.java
parent029ea55c5fa22e867aece5df345f2611369dd5f9 (diff)
Change package path to domain url
Diffstat (limited to 'src/main/java/com/pina/query/VideoSearchQueryBuilder.java')
-rw-r--r--src/main/java/com/pina/query/VideoSearchQueryBuilder.java134
1 files changed, 0 insertions, 134 deletions
diff --git a/src/main/java/com/pina/query/VideoSearchQueryBuilder.java b/src/main/java/com/pina/query/VideoSearchQueryBuilder.java
deleted file mode 100644
index 476994e..0000000
--- a/src/main/java/com/pina/query/VideoSearchQueryBuilder.java
+++ /dev/null
@@ -1,134 +0,0 @@
-package com.pina.query;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Builder for a video search query
- * Default values set in constructor
- */
-public class VideoSearchQueryBuilder {
- private String sort;
- private List<String> lang;
- private List<String> target;
- private List<String> conditions;
- private List<String> topic;
- private List<String> vch;
- private List<String> org;
- private List<String> comment;
- private boolean paginated;
- private int offset;
- private int limit;
-
- public VideoSearchQueryBuilder() {
- this.sort = "newest";
- this.paginated = true;
- this.offset = 0;
- this.limit = 10;
- this.topic = new ArrayList<String>();
- this.comment = new ArrayList<String>();
- this.org = List.of("Nijisanji");
- this.vch = new ArrayList<String>();
- this.conditions = new ArrayList<String>();
- this.lang = List.of("en");
- }
-
- public String getSort() {
- return sort;
- }
-
- public VideoSearchQueryBuilder setSort(String sort) {
- this.sort = sort;
- return this;
- }
-
- public List<String> getLang() {
- return lang;
- }
-
- public VideoSearchQueryBuilder setLang(List<String> lang) {
- this.lang = lang;
- return this;
- }
-
- public List<String> getTarget() {
- return target;
- }
-
- public VideoSearchQueryBuilder setTarget(List<String> target) {
- this.target = target;
- return this;
- }
-
- public List<String> getConditions() {
- return conditions;
- }
-
- public VideoSearchQueryBuilder setConditions(List<String> conditions) {
- this.conditions = conditions;
- return this;
- }
-
- public List<String> getTopic() {
- return topic;
- }
-
- public VideoSearchQueryBuilder setTopic(List<String> topic) {
- this.topic = topic;
- return this;
- }
-
- public List<String> getVch() {
- return vch;
- }
-
- public VideoSearchQueryBuilder setVch(List<String> vch) {
- this.vch = vch;
- return this;
- }
-
- public List<String> getOrg() {
- return org;
- }
-
- public VideoSearchQueryBuilder setOrg(List<String> org) {
- this.org = org;
- return this;
- }
-
- public List<String> getComment() {
- return comment;
- }
-
- public VideoSearchQueryBuilder setComment(List<String> comment) {
- this.comment = comment;
- return this;
- }
-
- public boolean isPaginated() {
- return paginated;
- }
-
- public VideoSearchQueryBuilder setPaginated(boolean paginated) {
- this.paginated = paginated;
- return this;
- }
-
- public int getOffset() {
- return offset;
- }
-
- public VideoSearchQueryBuilder setOffset(int offset) {
- this.offset = offset;
- return this;
- }
-
- public int getLimit() {
- return limit;
- }
-
- public VideoSearchQueryBuilder setLimit(int limit) {
- this.limit = limit;
- return this;
- }
-}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage