/**
 * Copyright (c) 2010-2020 Contributors to the openHAB project
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package org.openhab.binding.weathercompany.internal.config;

import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;

/**
 * The {@link WeatherCompanyForecastConfig} class contains fields mapping thing configuration parameters.
 *
 * @author Mark Hilbush - Initial contribution
 */
@NonNullByDefault
public class WeatherCompanyForecastConfig {
    /**
     * Type of location (postal, geocode, etc.)
     */
    public @Nullable String locationType;

    /**
     * Postal code
     */
    public @Nullable String postalCode;

    /**
     * Geocode
     */
    public @Nullable String geocode;

    /**
     * IATA code
     */
    public @Nullable String iataCode;

    /**
     * Language
     */
    public @Nullable String language;

    /**
     * Interval with which forecast will be updated.
     */
    public int refreshInterval;

    @Override
    public String toString() {
        return "WeatherCompanyConfig: { locationType=" + locationType + ", postalCode=" + postalCode + ", geocode="
                + geocode + ", iataCode=" + iataCode + ", language=" + language + ", refreshInterval=" + refreshInterval
                + " }";
    }
}
