2017-06-29 20:12:55 +02:00
|
|
|
/*
|
2017-03-01 18:47:52 +01:00
|
|
|
* Created by Christian Schabesberger on 25.07.16.
|
|
|
|
*
|
2023-09-23 00:10:15 +02:00
|
|
|
* Copyright (C) 2016 Christian Schabesberger <chris.schabesberger@mailbox.org>
|
2022-07-21 00:17:45 +02:00
|
|
|
* ChannelExtractor.java is part of NewPipe Extractor.
|
2017-03-01 18:47:52 +01:00
|
|
|
*
|
2022-07-21 00:17:45 +02:00
|
|
|
* NewPipe Extractor is free software: you can redistribute it and/or modify
|
2017-03-01 18:47:52 +01:00
|
|
|
* 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.
|
|
|
|
*
|
2022-07-21 00:17:45 +02:00
|
|
|
* NewPipe Extractor is distributed in the hope that it will be useful,
|
2017-03-01 18:47:52 +01:00
|
|
|
* 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
|
2022-07-21 00:17:45 +02:00
|
|
|
* along with NewPipe Extractor. If not, see <https://www.gnu.org/licenses/>.
|
2017-03-01 18:47:52 +01:00
|
|
|
*/
|
|
|
|
|
2022-07-21 00:17:45 +02:00
|
|
|
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;
|
|
|
|
|
2023-06-29 17:34:31 +02:00
|
|
|
public abstract class ChannelExtractor extends Extractor {
|
2017-03-01 18:47:52 +01:00
|
|
|
|
2022-02-13 20:43:17 +01:00
|
|
|
public static final long UNKNOWN_SUBSCRIBER_COUNT = -1;
|
|
|
|
|
2023-06-29 17:34:31 +02:00
|
|
|
protected ChannelExtractor(final StreamingService service, final ListLinkHandler linkHandler) {
|
2019-04-28 22:03:16 +02:00
|
|
|
super(service, linkHandler);
|
2017-08-06 22:20:15 +02:00
|
|
|
}
|
|
|
|
|
2022-07-21 00:17:45 +02:00
|
|
|
@Nonnull
|
|
|
|
public abstract List<Image> getAvatars() throws ParsingException;
|
|
|
|
@Nonnull
|
|
|
|
public abstract List<Image> getBanners() throws ParsingException;
|
2017-03-01 18:47:52 +01:00
|
|
|
public abstract String getFeedUrl() throws ParsingException;
|
|
|
|
public abstract long getSubscriberCount() throws ParsingException;
|
2017-08-07 19:00:36 +02:00
|
|
|
public abstract String getDescription() throws ParsingException;
|
2020-05-08 16:02:59 +02:00
|
|
|
public abstract String getParentChannelName() throws ParsingException;
|
|
|
|
public abstract String getParentChannelUrl() throws ParsingException;
|
2022-07-21 00:17:45 +02:00
|
|
|
@Nonnull
|
|
|
|
public abstract List<Image> getParentChannelAvatars() throws ParsingException;
|
2021-01-22 01:44:58 +01:00
|
|
|
public abstract boolean isVerified() throws ParsingException;
|
2023-06-29 17:34:31 +02:00
|
|
|
@Nonnull
|
|
|
|
public abstract List<ListLinkHandler> getTabs() throws ParsingException;
|
2023-06-29 17:41:01 +02:00
|
|
|
@Nonnull
|
|
|
|
public List<String> getTags() throws ParsingException {
|
|
|
|
return List.of();
|
|
|
|
}
|
2017-03-01 18:47:52 +01:00
|
|
|
}
|