Remove getters.

This commit is contained in:
FireMasterK 2020-12-14 11:30:45 +05:30
parent 709478605a
commit 0151b6f2d8
No known key found for this signature in database
GPG Key ID: 8DFF5DD33E93DB58
6 changed files with 14 additions and 166 deletions

View File

@ -4,8 +4,8 @@ import java.util.List;
public class Channel {
private String name, avatarUrl, bannerUrl, description, nextpage;
private List<StreamItem> relatedStreams;
public String name, avatarUrl, bannerUrl, description, nextpage;
public List<StreamItem> relatedStreams;
public Channel(String name, String avatarUrl, String bannerUrl, String description, String nextpage,
List<StreamItem> relatedStreams) {
@ -15,28 +15,4 @@ public class Channel {
this.nextpage = nextpage;
this.relatedStreams = relatedStreams;
}
public String getName() {
return name;
}
public String getAvatarUrl() {
return avatarUrl;
}
public String getBannerUrl() {
return bannerUrl;
}
public String getDescription() {
return description;
}
public String getNextpage() {
return nextpage;
}
public List<StreamItem> getRelatedStreams() {
return relatedStreams;
}
}

View File

@ -4,19 +4,11 @@ import java.util.List;
public class ChannelPage {
private String nextpage;
private List<StreamItem> relatedStreams;
public String nextpage;
public List<StreamItem> relatedStreams;
public ChannelPage(String nextpage, List<StreamItem> relatedStreams) {
this.nextpage = nextpage;
this.relatedStreams = relatedStreams;
}
public String getNextpage() {
return nextpage;
}
public List<StreamItem> getRelatedStreams() {
return relatedStreams;
}
}

View File

@ -2,7 +2,7 @@ package me.kavin.piped.utils.obj;
public class PipedStream {
private String url, format, quality, mimeType;
public String url, format, quality, mimeType;
public PipedStream(String url, String format, String quality, String mimeType) {
this.url = url;
@ -10,20 +10,4 @@ public class PipedStream {
this.quality = quality;
this.mimeType = mimeType;
}
public String getUrl() {
return url;
}
public String getFormat() {
return format;
}
public String getQuality() {
return quality;
}
public String getMimeType() {
return mimeType;
}
}

View File

@ -2,8 +2,8 @@ package me.kavin.piped.utils.obj;
public class StreamItem {
private String url, title, thumbnail, uploaderName, uploaderUrl;
private long duration, views;
public String url, title, thumbnail, uploaderName, uploaderUrl;
public long duration, views;
public StreamItem(String url, String title, String thumbnail, String uploaderName, String uploaderUrl,
long duration, long views) {
@ -15,32 +15,4 @@ public class StreamItem {
this.duration = duration;
this.views = views;
}
public String getUrl() {
return url;
}
public String getTitle() {
return title;
}
public String getThumbnail() {
return thumbnail;
}
public String getUploaderName() {
return uploaderName;
}
public String getUploaderUrl() {
return uploaderUrl;
}
public long getDuration() {
return duration;
}
public long getViews() {
return views;
}
}

View File

@ -4,17 +4,17 @@ import java.util.List;
public class Streams {
private String title, description, uploadDate, uploader, uploaderUrl, uploaderAvatar, thumbnailUrl, hls;
public String title, description, uploadDate, uploader, uploaderUrl, uploaderAvatar, thumbnailUrl, hls;
private long duration, views, likes, dislikes;
public long duration, views, likes, dislikes;
private List<PipedStream> audioStreams, videoStreams;
public List<PipedStream> audioStreams, videoStreams;
private List<StreamItem> relatedStreams;
public List<StreamItem> relatedStreams;
private List<Subtitle> subtitles;
public List<Subtitle> subtitles;
private boolean livestream;
public boolean livestream;
public Streams(String title, String description, String uploadDate, String uploader, String uploaderUrl,
String uploaderAvatar, String thumbnailUrl, long duration, long views, long likes, long dislikes,
@ -38,72 +38,4 @@ public class Streams {
this.livestream = livestream;
this.hls = hls;
}
public String getTitle() {
return title;
}
public String getDescription() {
return description;
}
public String getUploadDate() {
return uploadDate;
}
public String getUploader() {
return uploader;
}
public String getUploaderUrl() {
return uploaderUrl;
}
public String getUploaderAvatar() {
return uploaderAvatar;
}
public String getThumbnailUrl() {
return thumbnailUrl;
}
public long getDuration() {
return duration;
}
public long getViews() {
return views;
}
public long getLikes() {
return likes;
}
public long getDislikes() {
return dislikes;
}
public List<PipedStream> getAudioStreams() {
return audioStreams;
}
public List<PipedStream> getVideoStreams() {
return videoStreams;
}
public List<StreamItem> getRelatedStreams() {
return relatedStreams;
}
public List<Subtitle> getSubtitles() {
return subtitles;
}
public boolean isLivestream() {
return livestream;
}
public String getHls() {
return hls;
}
}

View File

@ -2,18 +2,10 @@ package me.kavin.piped.utils.obj;
public class Subtitle {
private final String url, mimeType;
public final String url, mimeType;
public Subtitle(String url, String mimeType) {
this.url = url;
this.mimeType = mimeType;
};
public String getUrl() {
return url;
}
public String getMimeType() {
return mimeType;
}
}