]> git.basschouten.com Git - openhab-addons.git/blob
deeae575656178763d55f1a8f526f7872b5d2d7a
[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 package org.openhab.binding.nzwateralerts.internal;
14
15 import java.util.Arrays;
16 import java.util.List;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.binding.nzwateralerts.internal.api.BeWaterWise;
20 import org.openhab.binding.nzwateralerts.internal.api.NapierCityCouncil;
21 import org.openhab.binding.nzwateralerts.internal.api.SmartWater;
22 import org.openhab.binding.nzwateralerts.internal.api.WaterWebService;
23 import org.openhab.core.thing.ThingTypeUID;
24
25 /**
26  * The {@link NZWaterAlertsBindingConstants} class defines common constants, which are
27  * used across the whole binding.
28  *
29  * @author Stewart Cossey - Initial contribution
30  */
31 @NonNullByDefault
32 public class NZWaterAlertsBindingConstants {
33
34     private static final String BINDING_ID = "nzwateralerts";
35
36     // List of all Thing Type UIDs
37     public static final ThingTypeUID THING_TYPE_WATERALERT = new ThingTypeUID(BINDING_ID, "wateralert");
38
39     // List of all Channel ids
40     public static final String CHANNEL_ALERTLEVEL = "alertlevel";
41
42     // List of all supported services
43     public static final List<WaterWebService> WATER_WEB_SERVICES = Arrays
44             .asList(new WaterWebService[] { new SmartWater(), new BeWaterWise(), new NapierCityCouncil() });
45 }