// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String OMDB_BASE_URL = "http://www.omdbapi.com/";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String OMDB_IMDB_ID = "i=";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String OMDB_PLOT = "plot=short";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String OMDB_R = "r=json";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String ROTTEN_TOMATOES_API = "apikey=";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String ROTTEN_TOMATOES_API_KEY = "jt33c9zrw6u7keppu32pc9vj";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String ROTTEN_TOMATOES_BASE_URL = "http://api.rottentomatoes.com/api/public/v1.0/movie_alias.json";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String ROTTEN_TOMATOES_IMDB_ID = "id=";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String ROTTEN_TOMATOES_TYPE_IMDB = "type=imdb";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_API_KEY = "dc7176817ac527fc0d4f384f311f1cb7";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_API_URL_API = "api_key=";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_API_URL_BASE = "http://api.themoviedb.org/3/";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_API_URL_MOVIE = "movie/";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_API_URL_QUERY = "query=";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_API_URL_SEARCH = "search/movie";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_API_URL_UPCOMING = "upcoming";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_IMAGE_BASE_URL = "http://image.tmdb.org/t/p/";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_POSTER_SIZE_DEFAULT = "w92";


import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import static com.proxima.Wubble.Constants.OMDB_BASE_URL;
import static com.proxima.Wubble.Constants.OMDB_IMDB_ID;
import static com.proxima.Wubble.Constants.OMDB_PLOT;
import static com.proxima.Wubble.Constants.OMDB_R;
import static com.proxima.Wubble.Constants.ROTTEN_TOMATOES_API;
import static com.proxima.Wubble.Constants.ROTTEN_TOMATOES_API_KEY;
import static com.proxima.Wubble.Constants.ROTTEN_TOMATOES_BASE_URL;
import static com.proxima.Wubble.Constants.ROTTEN_TOMATOES_IMDB_ID;
import static com.proxima.Wubble.Constants.ROTTEN_TOMATOES_TYPE_IMDB;
import static com.proxima.Wubble.Constants.TMDB_API_KEY;
import static com.proxima.Wubble.Constants.TMDB_API_URL_API;
import static com.proxima.Wubble.Constants.TMDB_API_URL_BASE;
import static com.proxima.Wubble.Constants.TMDB_API_URL_MOVIE;
import static com.proxima.Wubble.Constants.TMDB_API_URL_QUERY;
import static com.proxima.Wubble.Constants.TMDB_API_URL_SEARCH;
import static com.proxima.Wubble.Constants.TMDB_API_URL_UPCOMING;
import static com.proxima.Wubble.Constants.TMDB_IMAGE_BASE_URL;
import static com.proxima.Wubble.Constants.TMDB_POSTER_SIZE_DEFAULT;
package com.proxima.Wubble;

/**
 * Created by Epokhe on 10.03.2015.
 */



public class URLBuilder {
    public static String getMovieWithIdURL(int movieId) {
        String url =
                TMDB_API_URL_BASE +
                        TMDB_API_URL_MOVIE +
                        Integer.toString(movieId) +
                        "?" +
                        TMDB_API_URL_API +
                        TMDB_API_KEY;
        return url;
    }

    public static String getMovieSearchURL(String movieTitle) throws UnsupportedEncodingException {
        String url =
                TMDB_API_URL_BASE +
                        TMDB_API_URL_SEARCH +
                        "?" +
                        TMDB_API_URL_API +
                        TMDB_API_KEY +
                        "&" +
                        TMDB_API_URL_QUERY +
                        URLEncoder.encode(movieTitle, "UTF-8");
        return url;
    }

    public static String getImageURL(String path) {
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String OMDB_BASE_URL = "http://www.omdbapi.com/";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String OMDB_IMDB_ID = "i=";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String OMDB_PLOT = "plot=short";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String OMDB_R = "r=json";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String ROTTEN_TOMATOES_API = "apikey=";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String ROTTEN_TOMATOES_API_KEY = "jt33c9zrw6u7keppu32pc9vj";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String ROTTEN_TOMATOES_BASE_URL = "http://api.rottentomatoes.com/api/public/v1.0/movie_alias.json";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String ROTTEN_TOMATOES_IMDB_ID = "id=";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String ROTTEN_TOMATOES_TYPE_IMDB = "type=imdb";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_API_KEY = "dc7176817ac527fc0d4f384f311f1cb7";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_API_URL_API = "api_key=";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_API_URL_BASE = "http://api.themoviedb.org/3/";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_API_URL_MOVIE = "movie/";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_API_URL_QUERY = "query=";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_API_URL_SEARCH = "search/movie";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_API_URL_UPCOMING = "upcoming";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_IMAGE_BASE_URL = "http://image.tmdb.org/t/p/";
// 
// Path: app/src/main/java/com/proxima/Wubble/Constants.java
// public static final String TMDB_POSTER_SIZE_DEFAULT = "w92";


// Path: app/src/main/java/com/proxima/Wubble/URLBuilder.java
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import static com.proxima.Wubble.Constants.OMDB_BASE_URL;
import static com.proxima.Wubble.Constants.OMDB_IMDB_ID;
import static com.proxima.Wubble.Constants.OMDB_PLOT;
import static com.proxima.Wubble.Constants.OMDB_R;
import static com.proxima.Wubble.Constants.ROTTEN_TOMATOES_API;
import static com.proxima.Wubble.Constants.ROTTEN_TOMATOES_API_KEY;
import static com.proxima.Wubble.Constants.ROTTEN_TOMATOES_BASE_URL;
import static com.proxima.Wubble.Constants.ROTTEN_TOMATOES_IMDB_ID;
import static com.proxima.Wubble.Constants.ROTTEN_TOMATOES_TYPE_IMDB;
import static com.proxima.Wubble.Constants.TMDB_API_KEY;
import static com.proxima.Wubble.Constants.TMDB_API_URL_API;
import static com.proxima.Wubble.Constants.TMDB_API_URL_BASE;
import static com.proxima.Wubble.Constants.TMDB_API_URL_MOVIE;
import static com.proxima.Wubble.Constants.TMDB_API_URL_QUERY;
import static com.proxima.Wubble.Constants.TMDB_API_URL_SEARCH;
import static com.proxima.Wubble.Constants.TMDB_API_URL_UPCOMING;
import static com.proxima.Wubble.Constants.TMDB_IMAGE_BASE_URL;
import static com.proxima.Wubble.Constants.TMDB_POSTER_SIZE_DEFAULT;

package com.proxima.Wubble;

/**
 * Created by Epokhe on 10.03.2015.
 */



public class URLBuilder {
    public static String getMovieWithIdURL(int movieId) {
        String url =
                TMDB_API_URL_BASE +
                        TMDB_API_URL_MOVIE +
                        Integer.toString(movieId) +
                        "?" +
                        TMDB_API_URL_API +
                        TMDB_API_KEY;
        return url;
    }

    public static String getMovieSearchURL(String movieTitle) throws UnsupportedEncodingException {
        String url =
                TMDB_API_URL_BASE +
                        TMDB_API_URL_SEARCH +
                        "?" +
                        TMDB_API_URL_API +
                        TMDB_API_KEY +
                        "&" +
                        TMDB_API_URL_QUERY +
                        URLEncoder.encode(movieTitle, "UTF-8");
        return url;
    }

    public static String getImageURL(String path) {
        String url =