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.bticinosmarther.internal.api.dto;
16 * The {@code PlantRef} class defines the dto for Smarther API plant reference object.
18 * @author Fabio Possieri - Initial contribution
20 public class PlantRef {
23 private ModuleRef module;
26 * Returns the identifier of the plant.
28 * @return a string containing the plant identifier
30 public String getId() {
35 * Returns the chronothermostat reference inside the plant.
37 * @return a {@link ModuleRef} object representing the chronothermostat module reference
39 public ModuleRef getModule() {
44 public String toString() {
45 return String.format("id=%s, module=[%s]", id, module);