]> git.basschouten.com Git - openhab-addons.git/blob
a6a5f8ca30615eb6f8e1f6220642bdd48d7c3cdc
[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.ws.projectfile;
14
15 /**
16  * Class to store IHC / ELKO LS controller's enum value information.
17  *
18  * @author Pauli Anttila - Initial contribution
19  */
20 public class IhcEnumValue {
21     private final int id;
22     private final String name;
23
24     public IhcEnumValue(int id, String name) {
25         this.id = id;
26         this.name = name;
27     }
28
29     public int getId() {
30         return id;
31     }
32
33     public String getName() {
34         return name;
35     }
36
37     @Override
38     public String toString() {
39         return String.format("[ id=%d, name='%s' ]", id, name);
40     }
41 }