]> git.basschouten.com Git - openhab-addons.git/blob
6ccbb6ba4b47ca92f9361c4b1dfb1266cd99441e
[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.silvercrestwifisocket.internal.entities;
14
15 import org.openhab.binding.silvercrestwifisocket.internal.enums.SilvercrestWifiSocketResponseType;
16 import org.openhab.binding.silvercrestwifisocket.internal.enums.SilvercrestWifiSocketVendor;
17
18 /**
19  * This POJO represents one Wifi Socket Response.
20  *
21  * @author Jaime Vaz - Initial contribution
22  * @author Christian Heimerl - for integration of EasyHome
23  *
24  */
25 public class SilvercrestWifiSocketResponse {
26
27     private String macAddress;
28     private String hostAddress;
29     private SilvercrestWifiSocketResponseType type;
30     private SilvercrestWifiSocketVendor vendor;
31
32     /**
33      * Default constructor.
34      *
35      * @param macAddress the mac address
36      * @param hostAddress the host address
37      * @param type the {@link SilvercrestWifiSocketResponseType}
38      * @param vendor the vendor of the socket
39      */
40     public SilvercrestWifiSocketResponse(final String macAddress, final String hostAddress,
41             final SilvercrestWifiSocketResponseType type, final SilvercrestWifiSocketVendor vendor) {
42         super();
43         this.macAddress = macAddress;
44         this.hostAddress = hostAddress;
45         this.type = type;
46         this.vendor = vendor;
47     }
48
49     /**
50      * Constructor.
51      *
52      * @param macAddress the mac address
53      * @param type the {@link SilvercrestWifiSocketResponseType}
54      * @param vendor the vendor of the socket
55      */
56     public SilvercrestWifiSocketResponse(final String macAddress, final SilvercrestWifiSocketResponseType type,
57             final SilvercrestWifiSocketVendor vendor) {
58         this(macAddress, null, type, vendor);
59     }
60
61     public String getMacAddress() {
62         return this.macAddress;
63     }
64
65     public void setMacAddress(final String macAddress) {
66         this.macAddress = macAddress;
67     }
68
69     public SilvercrestWifiSocketResponseType getType() {
70         return this.type;
71     }
72
73     public void setType(final SilvercrestWifiSocketResponseType type) {
74         this.type = type;
75     }
76
77     public String getHostAddress() {
78         return this.hostAddress;
79     }
80
81     public void setHostAddress(final String hostAddress) {
82         this.hostAddress = hostAddress;
83     }
84
85     public SilvercrestWifiSocketVendor getVendor() {
86         return vendor;
87     }
88
89     public void setVendor(SilvercrestWifiSocketVendor vendor) {
90         this.vendor = vendor;
91     }
92 }