]> git.basschouten.com Git - openhab-addons.git/blob
1c359630f6933e233c2409ad2cbb14541279e280
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.bticinosmarther.internal.api.dto;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@code Sender} class defines the dto for Smarther API sender object.
19  *
20  * @author Fabio Possieri - Initial contribution
21  */
22 public class Sender {
23
24     @SerializedName("addressType")
25     private String addressType;
26     private String system;
27     private PlantRef plant;
28
29     /**
30      * Returns the sender address type.
31      *
32      * @return a string containing the sender address type
33      */
34     public String getAddressType() {
35         return addressType;
36     }
37
38     /**
39      * Returns the sender system.
40      *
41      * @return a string containing the sender system
42      */
43     public String getSystem() {
44         return system;
45     }
46
47     /**
48      * Returns the sender plant reference.
49      *
50      * @return a {@link PlantRef} object representing the sender plant reference
51      */
52     public PlantRef getPlant() {
53         return plant;
54     }
55
56     @Override
57     public String toString() {
58         return String.format("addressType=%s, system=%s, plant=[%s]", addressType, system, plant);
59     }
60 }