/*
 * This file is part of Flicklib.
 *
 * Copyright (C) Francis De Brabandere
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.flicklib.domain;

/**
 *
 * @author francisdb
 */
public enum MovieService {
    /**
     * http://www.imdb.com
     */
    IMDB("IMDB", "http://www.imdb.com"),
    
    /**
     * http://www.rottentomatoes.com
     */
    TOMATOES("Rotten Tomatoes", "http://www.rottentomatoes.com", "Tomatoes"),
    
    /**
     * http://www.movieweb.com
     */
    MOVIEWEB("MovieWeb", "http://www.movieweb.com", "MWeb"),
    
    
    /* TODO add http/jericho based parser */
//    /**
//     * http://www.omdb.com
//     */
//    OMDB("OMDB", "http://www.omdb.com"),
    
    /**
     * http://www.google.com/movies
     */
    GOOGLE("Google movies", "http://www.google.com", "Google"),
    
    /**
     * http://www.flixster.com
     */
    FLIXSTER("Flixster", "http://www.flixster.com"),
    
    /**
     * http://www.port.hu
     */
    PORTHU("Port.hu", "http://www.port.hu"),
    
    /**
     * http://www.netflix.com
     */
    NETFLIX("Netflix", "http://www.netflix.com"),
    
    /**
     * http://www.cinebel.be
     */
    CINEBEL("Cinebel", "http://www.cinebel.be"),
    
    /**
     * http://www.ofdb.de
     */
    OFDB("Online-Filmdatenbank", "http://www.ofdb.de", "OFDb"),
    
    XPRESSHU("Xpress.hu", "http://www.xpress.hu"),
    
    BLIPPR("Blipp.com", "http://www.blippr.com");

    private final String name;
    private final String url;
    private final String shortName;
    
    MovieService(final String name, final String url) {
        this.name = name;
        this.url = url;
        this.shortName = name;
    }
    
    MovieService(final String name, final String url, final String shortName) {
        this.name = name;
        this.url = url;
        this.shortName = shortName;
    }

    /**
     * Gets the full name for this service
     * @return the name
     */
    public String getName(){
        return name;
    }

    /**
     * Gets the main site url without trailing slash
     * @return the url
     */
    public String getUrl(){
        return url;
    }
    
    /**
     * Gets the short name for this service
     * @return the short name
     */
    public String getShortName() {
        return shortName;
    }

}

@@ -1906,16 +1906,17 @@
 R(%22Blipp
+r
 .com%22, %22

fix the name of Blippr