]> git.basschouten.com Git - openhab-addons.git/blob
296df57cda67cbef43c94646f23697ad91fb7a21
[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.ihc.internal.converters;
14
15 import java.util.List;
16 import java.util.Map;
17
18 import org.openhab.binding.ihc.internal.ws.projectfile.IhcEnumValue;
19 import org.openhab.core.types.Command;
20
21 /**
22  * Class to hold additional information which is needed for data conversion.
23  *
24  * @author Pauli Anttila - Initial contribution
25  */
26 public class ConverterAdditionalInfo {
27     private List<IhcEnumValue> enumValues;
28     private Boolean inverted;
29     private Map<Command, Object> commandLevels;
30
31     public ConverterAdditionalInfo(List<IhcEnumValue> enumValues, Boolean inverted,
32             Map<Command, Object> commandLevels) {
33         this.enumValues = enumValues;
34         this.inverted = inverted;
35         this.commandLevels = commandLevels;
36     }
37
38     public List<IhcEnumValue> getEnumValues() {
39         return enumValues;
40     }
41
42     public Boolean getInverted() {
43         return inverted;
44     }
45
46     public Map<Command, Object> getCommandLevels() {
47         return commandLevels;
48     }
49 }