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;
15 import java.util.List;
17 import org.eclipse.jdt.annotation.Nullable;
20 * The {@code Plant} class defines the dto for Smarther API plant object.
22 * @author Fabio Possieri - Initial contribution
28 private List<Module> modules;
31 * Returns the identifier of the plant.
33 * @return a string containing the plant identifier
35 public String getId() {
40 * Returns the plant reference label (i.e. the plant "name").
42 * @return a string containing the plant reference label
44 public String getName() {
49 * Returns the list of chronothermostat modules of the plant.
51 * @return the list of chronothermostat modules of the plant, or {@code null} in case the plant has no modules
53 public @Nullable List<Module> getModules() {
58 public String toString() {
59 return String.format("id=%s, name=%s", id, name);