]> git.basschouten.com Git - openhab-addons.git/blob
b1e360f53c648188c8b0da9eaa6f294f7909b001
[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.energidataservice.internal;
14
15 import static org.openhab.binding.energidataservice.internal.EnergiDataServiceBindingConstants.*;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18
19 /**
20  * {@link DatahubTariff} maps pricelists from the DatahubPricelist dataset to related channels.
21  *
22  * @author Jacob Laursen - Initial contribution
23  */
24 @NonNullByDefault
25 public enum DatahubTariff {
26     NET_TARIFF(CHANNEL_NET_TARIFF),
27     SYSTEM_TARIFF(CHANNEL_SYSTEM_TARIFF),
28     ELECTRICITY_TAX(CHANNEL_ELECTRICITY_TAX),
29     REDUCED_ELECTRICITY_TAX(CHANNEL_REDUCED_ELECTRICITY_TAX),
30     TRANSMISSION_NET_TARIFF(CHANNEL_TRANSMISSION_NET_TARIFF);
31
32     String channelId;
33
34     DatahubTariff(String channelId) {
35         this.channelId = channelId;
36     }
37
38     public String getChannelId() {
39         return channelId;
40     }
41 }