2 * Copyright (c) 2010-2023 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
14 package org.openhab.binding.speedtest.internal;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.core.thing.ThingTypeUID;
22 * The {@link SpeedtestBindingConstants} class defines common constants, which are
23 * used across the whole binding.
25 * @author Brian Homeyer - Initial contribution
28 public class SpeedtestBindingConstants {
30 private static final String BINDING_ID = "speedtest";
32 // List of all Thing Type UIDs
33 public static final ThingTypeUID THING_TYPE_SPEEDTEST = new ThingTypeUID(BINDING_ID, "speedtest");
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";
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";
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";
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);