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.neeo.internal.models;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * The model representing a Neeo Macro (serialize/deserialize json use only)
21 * @author Tim Roberts - Initial contribution
24 public class NeeoMacro {
30 /** The component type */
32 private String componentType;
38 /** The macro label */
42 /** The associated device name */
44 private String deviceName;
46 /** The associated room name */
48 private String roomName;
56 public String getKey() {
61 * Gets the component type
63 * @return the component type
66 public String getComponentType() {
76 public String getName() {
81 * Gets the macro label
86 public String getLabel() {
91 * Gets the associated device name
93 * @return the device name
96 public String getDeviceName() {
101 * Gets the associated room name
103 * @return the room name
106 public String getRoomName() {
111 public String toString() {
112 return "NeeoMacro [key=" + key + ", componentType=" + componentType + ", name=" + name + ", label=" + label
113 + ", deviceName=" + deviceName + ", roomName=" + roomName + "]";