NewPipeExtractor/extractor/src/main/java/org/schabi/newpipe/extractor/channel/ChannelInfoItem.java

60 wiersze
1.7 KiB
Java
Czysty Zwykły widok Historia

2017-08-11 01:23:09 +00:00
package org.schabi.newpipe.extractor.channel;
2017-03-01 17:47:52 +00:00
import org.schabi.newpipe.extractor.InfoItem;
/*
2017-03-01 17:47:52 +00:00
* Created by Christian Schabesberger on 11.02.17.
*
* Copyright (C) Christian Schabesberger 2017 <chris.schabesberger@mailbox.org>
2017-08-11 01:23:09 +00:00
* ChannelInfoItem.java is part of NewPipe.
2017-03-01 17:47:52 +00:00
*
* NewPipe is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* NewPipe is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with NewPipe. If not, see <http://www.gnu.org/licenses/>.
*/
2017-08-11 01:23:09 +00:00
public class ChannelInfoItem extends InfoItem {
2017-03-01 17:47:52 +00:00
private String description;
private long subscriberCount = -1;
private long streamCount = -1;
2017-03-01 17:47:52 +00:00
2017-11-11 01:55:56 +00:00
public ChannelInfoItem(int serviceId, String url, String name) {
super(InfoType.CHANNEL, serviceId, url, name);
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public long getSubscriberCount() {
return subscriberCount;
2017-11-11 01:55:56 +00:00
}
public void setSubscriberCount(long subscriber_count) {
this.subscriberCount = subscriber_count;
2017-11-11 01:55:56 +00:00
}
public long getStreamCount() {
return streamCount;
2017-11-11 01:55:56 +00:00
}
public void setStreamCount(long stream_count) {
this.streamCount = stream_count;
2017-03-01 17:47:52 +00:00
}
}