NewPipeExtractor/extractor/src/main/java/org/schabi/newpipe/extractor/ServiceList.java

37 lines
989 B
Java

package org.schabi.newpipe.extractor;
import org.schabi.newpipe.extractor.services.soundcloud.SoundcloudService;
import org.schabi.newpipe.extractor.services.youtube.YoutubeService;
import java.util.List;
import static java.util.Arrays.asList;
import static java.util.Collections.unmodifiableList;
/**
* A list of supported services.
*/
public final class ServiceList {
private ServiceList() {
//no instance
}
public static final YoutubeService YouTube;
public static final SoundcloudService SoundCloud;
private static final List<StreamingService> SERVICES = unmodifiableList(asList(
YouTube = new YoutubeService(0),
SoundCloud = new SoundcloudService(1)
// DailyMotion = new DailyMotionService(2);
));
/**
* Get all the supported services.
*
* @return a unmodifiable list of all the supported services
*/
public static List<StreamingService> all() {
return SERVICES;
}
}