]> git.basschouten.com Git - openhab-addons.git/blob
cc9a9a364b94f5d8ca94e239437cd84b5825de4b
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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
14 package org.openhab.binding.speedtest.internal;
15
16 import java.util.Set;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.core.thing.ThingTypeUID;
20
21 /**
22  * The {@link SpeedtestBindingConstants} class defines common constants, which are
23  * used across the whole binding.
24  *
25  * @author Brian Homeyer - Initial contribution
26  */
27 @NonNullByDefault
28 public class SpeedtestBindingConstants {
29
30     private static final String BINDING_ID = "speedtest";
31
32     // List of all Thing Type UIDs
33     public static final ThingTypeUID THING_TYPE_SPEEDTEST = new ThingTypeUID(BINDING_ID, "speedtest");
34
35     // Config
36     public static final String REFRESH_INTERVAL = "refreshInterval";
37     public static final String EXEC_PATH = "execPath";
38     public static final String SPEEDTEST_VERSION = "speedTestVersion";
39     public static final String SERVER_ID = "serverID";
40
41     // Channels
42     public static final String SERVER = "server";
43     public static final String PING_JITTER = "pingJitter";
44     public static final String PING_LATENCY = "pingLatency";
45     public static final String DOWNLOAD_BANDWIDTH = "downloadBandwidth";
46     public static final String DOWNLOAD_BYTES = "downloadBytes";
47     public static final String DOWNLOAD_ELAPSED = "downloadElapsed";
48     public static final String UPLOAD_BANDWIDTH = "uploadBandwidth";
49     public static final String UPLOAD_BYTES = "uploadBytes";
50     public static final String UPLOAD_ELAPSED = "uploadElapsed";
51     public static final String ISP = "isp";
52     public static final String INTERFACE_INTERNALIP = "interfaceInternalIp";
53     public static final String INTERFACE_EXTERNALIP = "interfaceExternalIp";
54     public static final String RESULT_URL = "resultUrl";
55     public static final String TRIGGER_TEST = "triggerTest";
56
57     public static final String PROPERTY_SERVER_LIST1 = "Server List 1";
58     public static final String PROPERTY_SERVER_LIST2 = "Server List 2";
59     public static final String PROPERTY_SERVER_LIST3 = "Server List 3";
60     public static final String PROPERTY_SERVER_LIST4 = "Server List 4";
61     public static final String PROPERTY_SERVER_LIST5 = "Server List 5";
62     public static final String PROPERTY_SERVER_LIST6 = "Server List 6";
63     public static final String PROPERTY_SERVER_LIST7 = "Server List 7";
64     public static final String PROPERTY_SERVER_LIST8 = "Server List 8";
65     public static final String PROPERTY_SERVER_LIST9 = "Server List 9";
66     public static final String PROPERTY_SERVER_LIST10 = "Server List 10";
67
68     public static final Set<String> SUPPORTED_CHANNEL_IDS = Set.of(SERVER, PING_JITTER, PING_LATENCY,
69             DOWNLOAD_BANDWIDTH, DOWNLOAD_BYTES, DOWNLOAD_ELAPSED, UPLOAD_BANDWIDTH, UPLOAD_BYTES, UPLOAD_ELAPSED, ISP,
70             INTERFACE_INTERNALIP, INTERFACE_EXTERNALIP, RESULT_URL);
71 }