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 org.openhab.core.util.StringUtils;
17 import com.google.gson.annotations.SerializedName;
20 * The {@code Module} class defines the dto for Smarther API chronothermostat module object.
22 * @author Fabio Possieri - Initial contribution
26 @SerializedName("device")
27 private String deviceType;
32 * Returns the device type of the chronothermostat module.
34 * @return a string containing the module device type
36 public String getDeviceType() {
37 return StringUtils.capitalizeByWhitespace(deviceType);
41 * Returns the identifier of the chronothermostat module.
43 * @return a string containing the module identifier
45 public String getId() {
50 * Returns the chronothermostat module reference label (i.e. the module "name").
52 * @return a string containing the module reference label
54 public String getName() {
59 public String toString() {
60 return String.format("id=%s, name=%s, type=%s", id, name, deviceType);