59 lines
2.3 KiB
Java
59 lines
2.3 KiB
Java
/*
|
|
* Created by Christian Schabesberger on 25.07.16.
|
|
*
|
|
* Copyright (C) 2016 Christian Schabesberger <chris.schabesberger@mailbox.org>
|
|
* ChannelExtractor.java is part of NewPipe Extractor.
|
|
*
|
|
* NewPipe Extractor 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 Extractor 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 Extractor. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
package org.schabi.newpipe.extractor.channel;
|
|
|
|
import org.schabi.newpipe.extractor.Extractor;
|
|
import org.schabi.newpipe.extractor.Image;
|
|
import org.schabi.newpipe.extractor.StreamingService;
|
|
import org.schabi.newpipe.extractor.exceptions.ParsingException;
|
|
import org.schabi.newpipe.extractor.linkhandler.ListLinkHandler;
|
|
|
|
import javax.annotation.Nonnull;
|
|
import java.util.List;
|
|
|
|
public abstract class ChannelExtractor extends Extractor {
|
|
|
|
public static final long UNKNOWN_SUBSCRIBER_COUNT = -1;
|
|
|
|
protected ChannelExtractor(final StreamingService service, final ListLinkHandler linkHandler) {
|
|
super(service, linkHandler);
|
|
}
|
|
|
|
@Nonnull
|
|
public abstract List<Image> getAvatars() throws ParsingException;
|
|
@Nonnull
|
|
public abstract List<Image> getBanners() throws ParsingException;
|
|
public abstract String getFeedUrl() throws ParsingException;
|
|
public abstract long getSubscriberCount() throws ParsingException;
|
|
public abstract String getDescription() throws ParsingException;
|
|
public abstract String getParentChannelName() throws ParsingException;
|
|
public abstract String getParentChannelUrl() throws ParsingException;
|
|
@Nonnull
|
|
public abstract List<Image> getParentChannelAvatars() throws ParsingException;
|
|
public abstract boolean isVerified() throws ParsingException;
|
|
@Nonnull
|
|
public abstract List<ListLinkHandler> getTabs() throws ParsingException;
|
|
@Nonnull
|
|
public List<String> getTags() throws ParsingException {
|
|
return List.of();
|
|
}
|
|
}
|