]> git.basschouten.com Git - openhab-addons.git/blob
b97d081a109bef51d16e6dddf75552582ac567ca
[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.max.internal.device;
14
15 /**
16  * Device information provided by the M message meta information.
17  *
18  * @author Andreas Heil - Initial contribution
19  */
20 public class DeviceInformation {
21
22     private final DeviceType deviceType;
23     private final String serialNumber;
24     private final String rfAddress;
25     private final String name;
26     private final int roomId;
27
28     public DeviceInformation(DeviceType deviceType, String serialNumber, String rfAddress, String name, int roomId) {
29         this.deviceType = deviceType;
30         this.serialNumber = serialNumber;
31         this.rfAddress = rfAddress;
32         this.name = name;
33         this.roomId = roomId;
34     }
35
36     public String getRFAddress() {
37         return rfAddress;
38     }
39
40     public DeviceType getDeviceType() {
41         return deviceType;
42     }
43
44     public String getSerialNumber() {
45         return serialNumber;
46     }
47
48     public int getRoomId() {
49         return roomId;
50     }
51
52     public String getName() {
53         return name;
54     }
55 }