2 * Copyright (c) 2010-2024 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.openweathermap.internal.config;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19 import org.openhab.binding.openweathermap.internal.handler.OpenWeatherMapAPIHandler;
22 * The {@link OpenWeatherMapAPIConfiguration} is the class used to match the {@link OpenWeatherMapAPIHandler}s
25 * @author Christoph Weitkamp - Initial contribution
28 public class OpenWeatherMapAPIConfiguration {
29 // supported languages (see https://openweathermap.org/current#multi)
30 public static final Set<String> SUPPORTED_LANGUAGES = Set.of("af", "al", "ar", "az", "bg", "ca", "cz", "da", "de",
31 "el", "en", "es", "sp", "eu", "fa", "fi", "fr", "gl", "he", "hi", "hr", "hu", "id", "it", "ja", "kr", "la",
32 "lt", "mk", "nl", "no", "pl", "pt", "pt_br", "ro", "ru", "se", "sv", "sk", "sl", "sr", "th", "tr", "uk",
33 "ua", "vi", "zh_cn", "zh_tw", "zu");
35 public @Nullable String apikey;
36 public int refreshInterval;
37 public @Nullable String language;
38 public String apiVersion = "2.5";