blob: 9047f1a768a7495d712c72c50460f49c0c1a65b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
package com.pinapelz.query;
import com.pinapelz.vtuber.ExtraData;
import com.pinapelz.vtuber.Language;
import java.util.List;
/**
* Query builder for getting videos by a given channel id
*/
public class VideosByChannelIDQueryBuilder {
private String channelId;
private String type;
private String include;
private String lang;
private Integer limit;
private Integer offset;
private String paginated;
public VideosByChannelIDQueryBuilder setChannelId(String channelId) {
this.channelId = channelId;
return this;
}
public VideosByChannelIDQueryBuilder setType(String type) {
this.type = type;
return this;
}
public VideosByChannelIDQueryBuilder setInclude(String include) {
this.include = include;
return this;
}
public VideosByChannelIDQueryBuilder setInclude(String[] include) {
this.include = String.join(",", include);
return this;
}
public VideosByChannelIDQueryBuilder setInclude(ExtraData[] include) {
String[] includeStrings = new String[include.length];
for (int i = 0; i < include.length; i++) {
includeStrings[i] = include[i].toString();
}
this.include = String.join(",", includeStrings);
return this;
}
public VideosByChannelIDQueryBuilder setInclude(ExtraData include) {
this.include = include.toString();
return this;
}
public VideosByChannelIDQueryBuilder setLang(String lang) {
this.lang = lang;
return this;
}
public VideosByChannelIDQueryBuilder setLang(Language lang) {
this.lang = lang.toString();
return this;
}
public VideosByChannelIDQueryBuilder setLang(List<Language> lang){
String[] langStrings = new String[lang.size()];
for (int i = 0; i < lang.size(); i++) {
langStrings[i] = lang.get(i).toString();
}
this.lang = String.join(",", langStrings);
return this;
}
public VideosByChannelIDQueryBuilder setLimit(Integer limit) {
this.limit = limit;
return this;
}
public VideosByChannelIDQueryBuilder setOffset(Integer offset) {
this.offset = offset;
return this;
}
public VideosByChannelIDQueryBuilder setPaginated(String paginated) {
this.paginated = paginated;
return this;
}
public String getChannelId() {
return channelId;
}
public String getType() {
return type;
}
public String getInclude() {
return include;
}
public String getLang() {
return lang;
}
public Integer getLimit() {
return limit;
}
public Integer getOffset() {
return offset;
}
public String getPaginated() {
return paginated;
}
}
|