/*
 * Copyright 2012 Uwe Trottmann
 *
 * 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.uwetrottmann.tmdb.services;

import com.google.gson.reflect.TypeToken;
import com.uwetrottmann.tmdb.TmdbApiBuilder;
import com.uwetrottmann.tmdb.TmdbApiService;
import com.uwetrottmann.tmdb.entities.Configuration;

public class ConfigurationService extends TmdbApiService {

    /**
     * Get the system wide configuration information for images. Some elements
     * of the API require some knowledge of the configuration data which can be
     * found here. The purpose of this is to try and keep the actual API
     * responses as light as possible. It is recommended you store this data
     * within your application and check for updates every so often.<br>
     * <br>
     * To build an image URL, you will need 3 pieces of data. The base_url, size
     * and file_path. Simply combine them all and you will have a fully
     * qualified URL. Heres an example URL:<br>
     * <br>
     * <a href=
     * "http://cf2.imgobject.com/t/p/w500/8uO0gUM8aNqYLs1OsTBQiXu0fEv.jpg"
     * >http://cf2.imgobject.com/t/p/w500/8uO0gUM8aNqYLs1OsTBQiXu0fEv.jpg</a>
     * 
     * @return Builder instance.
     */
    public ConfigurationBuilder configuration() {
        return new ConfigurationBuilder(this);
    }

    public static final class ConfigurationBuilder extends TmdbApiBuilder<Configuration> {
        private static final String URI = "/configuration";

        private ConfigurationBuilder(ConfigurationService service) {
            super(service, new TypeToken<Configuration>() {
            }, URI);
        }
    }
}

/*
 * Copyright 2012 Uwe Trottmann
 *
 * 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.uwetrottmann.tmdb.services;

import com.google.gson.reflect.TypeToken;
import com.uwetrottmann.tmdb.TmdbApiBuilder;
import com.uwetrottmann.tmdb.TmdbApiService;
import com.uwetrottmann.tmdb.entities.Configuration;

public class ConfigurationService extends TmdbApiService {

    /**
     * Get the system wide configuration information for images. Some elements
     * of the API require some knowledge of the configuration data which can be
     * found here. The purpose of this is to try and keep the actual API
     * responses as light as possible. It is recommended you store this data
     * within your application and check for updates every so often.<br>
     * <br>
     * To build an image URL, you will need 3 pieces of data. The base_url, size
     * and file_path. Simply combine them all and you will have a fully
     * qualified URL. Here is an example URL:<br>
     * <br>
     * <a href=
     * "http://cf2.imgobject.com/t/p/w500/8uO0gUM8aNqYLs1OsTBQiXu0fEv.jpg"
     * >http://cf2.imgobject.com/t/p/w500/8uO0gUM8aNqYLs1OsTBQiXu0fEv.jpg</a>
     * 
     * @return Builder instance.
     */
    public ConfigurationBuilder configuration() {
        return new ConfigurationBuilder(this);
    }

    public static final class ConfigurationBuilder extends TmdbApiBuilder<Configuration> {
        private static final String URI = "/configuration";

        private ConfigurationBuilder(ConfigurationService service) {
            super(service, new TypeToken<Configuration>() {
            }, URI);
        }
    }
}

Fix encoding issue.