import { MovieTicket } from "@autoplex/database";
import Torrent from "../Torrent";

/**
 * Media type flags
 */
export enum MediaType {
	None    = 0x0,
	Movies  = 0x1,
	TvShows = 0x2
}

export default abstract class Provider
{
	/**
	 * Indicate what media types the provider supports
	 */
	public static readonly PROVIDES: MediaType = MediaType.None;

	/**
	 * Search for movies
	 */
	public abstract searchMovie(movie: MovieTicket): Promise<Torrent[]>;

}
