]> git.basschouten.com Git - openhab-addons.git/blob
482394a0cf0996c8c2630ee94bd6f93b6ad323ee
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.openweathermap.internal.config;
14
15 import java.util.Set;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19 import org.openhab.binding.openweathermap.internal.handler.OpenWeatherMapAPIHandler;
20
21 /**
22  * The {@link OpenWeatherMapAPIConfiguration} is the class used to match the {@link OpenWeatherMapAPIHandler}s
23  * configuration.
24  *
25  * @author Christoph Weitkamp - Initial contribution
26  */
27 @NonNullByDefault
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");
34
35     public @Nullable String apikey;
36     public int refreshInterval;
37     public @Nullable String language;
38     public String apiVersion = "2.5";
39 }