/*
 * 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"),
    
    /**
     * http://www.movieweb.com
     */
    MOVIEWEB("MovieWeb", "http://www.movieweb.com/"),
    
    /**
     * http://www.omdb.com
     */
    OMDB("OMDB", "http://www.omdb.com"),
    
    /**
     * http://www.google.com/movies
     */
    GOOGLE("Google movies", "http://www.google.com/movies"),
    
    /**
     * http://www.flixster.com
     */
    FLIXSTER("Flixter", "http://www.flixter.com"),
    
    /**
     * http://www.port.hu
     */
    PORTHU("Port.hu", "http://www.port.hu"),
    
    /**
     * http://www.netflix.com
     */
    NETFLIX("Netflix", "http://www.netflix.com");

    private final String name;
    private final String url;

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

    public String getName(){
        return name;
    }

    public String getUrl(){
        return url;
    }

}

@@ -1030,19 +1030,27 @@
 eb.com/%22
+, %22MWeb%22
 ),%0A
-
     %0A   
@@ -1245,16 +1245,26 @@
 /movies%22
+, %22Google%22
 ),%0A    %0A
@@ -1616,17 +1616,57 @@
 ng url;%0A
+    private final String shortName;%0A    
 %0A
-
     Movi
@@ -1759,24 +1759,227 @@
 .url = url;%0A
+        this.shortName = name;%0A    %7D%0A    MovieService(final String name, final String url, final String shortName) %7B%0A        this.name = name;%0A        this.url = url;%0A        this.shortName = shortName;%0A
     %7D%0A%0A    p
@@ -2054,24 +2054,24 @@
 g getUrl()%7B%0A
-
         retu
@@ -2083,12 +2083,84 @@
 l;%0A    %7D
+%0A    %0A    public String getShortName() %7B%0A        return shortName;%0A    %7D
 %0A%0A%7D%0A

add short label for the services