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 com.google.gson.annotations.SerializedName;
18 * The {@code Sender} class defines the dto for Smarther API sender object.
20 * @author Fabio Possieri - Initial contribution
24 @SerializedName("addressType")
25 private String addressType;
26 private String system;
27 private PlantRef plant;
30 * Returns the sender address type.
32 * @return a string containing the sender address type
34 public String getAddressType() {
39 * Returns the sender system.
41 * @return a string containing the sender system
43 public String getSystem() {
48 * Returns the sender plant reference.
50 * @return a {@link PlantRef} object representing the sender plant reference
52 public PlantRef getPlant() {
57 public String toString() {
58 return String.format("addressType=%s, system=%s, plant=[%s]", addressType, system, plant);