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
13 package org.openhab.binding.nzwateralerts.internal;
15 import java.util.Arrays;
16 import java.util.List;
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;
26 * The {@link NZWaterAlertsBindingConstants} class defines common constants, which are
27 * used across the whole binding.
29 * @author Stewart Cossey - Initial contribution
32 public class NZWaterAlertsBindingConstants {
34 private static final String BINDING_ID = "nzwateralerts";
36 // List of all Thing Type UIDs
37 public static final ThingTypeUID THING_TYPE_WATERALERT = new ThingTypeUID(BINDING_ID, "wateralert");
39 // List of all Channel ids
40 public static final String CHANNEL_ALERTLEVEL = "alertlevel";
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() });