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.max.internal.device;
16 * Room information provided by the M message meta information.
18 * @author Andreas Heil - Initial contribution
19 * @author Marcel Verpaalen - OH2 update
21 public class RoomInformation {
24 private String rfAddress;
26 public RoomInformation(int position, String name, String rfAddress) {
27 this.position = position;
29 this.rfAddress = rfAddress;
32 public int getPosition() {
36 public void setPosition(int position) {
37 this.position = position;
40 public String getName() {
44 public void setName(String name) {
48 public String getRFAddress() {
52 public void setRFAddress(String rfAddress) {
53 this.rfAddress = rfAddress;
57 public String toString() {
58 return "Room " + position + " (" + rfAddress + ") ='" + name + "'";