setter getter method for bookmarked subscription
This commit is contained in:
parent
91b1efc97e
commit
9395cf3a68
22
extractor/src/main/java/org/schabi/newpipe/extractor/channel/ChannelInfoItem.java
Normal file → Executable file
22
extractor/src/main/java/org/schabi/newpipe/extractor/channel/ChannelInfoItem.java
Normal file → Executable file
|
@ -27,12 +27,24 @@ public class ChannelInfoItem extends InfoItem {
|
|||
private String description;
|
||||
private long subscriberCount = -1;
|
||||
private long streamCount = -1;
|
||||
|
||||
private long bookmark;
|
||||
|
||||
public ChannelInfoItem(int serviceId, String url, String name) {
|
||||
super(InfoType.CHANNEL, serviceId, url, name);
|
||||
}
|
||||
|
||||
|
||||
public ChannelInfoItem(InfoType infoType, int serviceId, String url, String name, String description, long subscriberCount, long streamCount, long bookmark) {
|
||||
super(infoType, serviceId, url, name);
|
||||
this.description = description;
|
||||
this.subscriberCount = subscriberCount;
|
||||
this.streamCount = streamCount;
|
||||
this.bookmark = bookmark;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
@ -56,4 +68,12 @@ public class ChannelInfoItem extends InfoItem {
|
|||
public void setStreamCount(long stream_count) {
|
||||
this.streamCount = stream_count;
|
||||
}
|
||||
|
||||
public long getBookmark() {
|
||||
return bookmark;
|
||||
}
|
||||
|
||||
public void setBookmark(long bookmark) {
|
||||
this.bookmark = bookmark;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue