NewPipeExtractor/src/main/java/org/schabi/newpipe/extractor/user/UserExtractor.java

51 lines
2.0 KiB
Java
Raw Normal View History

2017-08-07 18:12:51 +02:00
package org.schabi.newpipe.extractor.user;
2017-03-01 18:47:52 +01:00
import org.schabi.newpipe.extractor.ListExtractor;
2017-08-06 22:20:15 +02:00
import org.schabi.newpipe.extractor.StreamingService;
2017-03-01 18:47:52 +01:00
import org.schabi.newpipe.extractor.UrlIdHandler;
import org.schabi.newpipe.extractor.exceptions.ExtractionException;
import org.schabi.newpipe.extractor.exceptions.ParsingException;
import java.io.IOException;
/*
2017-03-01 18:47:52 +01:00
* Created by Christian Schabesberger on 25.07.16.
*
* Copyright (C) Christian Schabesberger 2016 <chris.schabesberger@mailbox.org>
2017-08-07 18:12:51 +02:00
* UserExtractor.java is part of NewPipe.
2017-03-01 18:47:52 +01: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-07 18:12:51 +02:00
public abstract class UserExtractor extends ListExtractor {
2017-03-01 18:47:52 +01:00
2017-08-07 18:12:51 +02:00
public UserExtractor(StreamingService service, String url, String nextStreamsUrl) throws IOException, ExtractionException {
2017-08-06 22:20:15 +02:00
super(service, url, nextStreamsUrl);
}
@Override
protected UrlIdHandler getUrlIdHandler() throws ParsingException {
2017-08-07 18:12:51 +02:00
return getService().getUserUrlIdHandler();
2017-03-01 18:47:52 +01:00
}
2017-08-07 18:12:51 +02:00
public abstract String getUserId() throws ParsingException;
public abstract String getUserName() throws ParsingException;
2017-03-01 18:47:52 +01:00
public abstract String getAvatarUrl() throws ParsingException;
public abstract String getBannerUrl() throws ParsingException;
public abstract String getFeedUrl() throws ParsingException;
public abstract long getSubscriberCount() throws ParsingException;
public abstract String getDescription() throws ParsingException;
2017-03-01 18:47:52 +01:00
}