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.silvercrestwifisocket.internal.entities;
15 import org.openhab.binding.silvercrestwifisocket.internal.enums.SilvercrestWifiSocketResponseType;
16 import org.openhab.binding.silvercrestwifisocket.internal.enums.SilvercrestWifiSocketVendor;
19 * This POJO represents one Wifi Socket Response.
21 * @author Jaime Vaz - Initial contribution
22 * @author Christian Heimerl - for integration of EasyHome
25 public class SilvercrestWifiSocketResponse {
27 private String macAddress;
28 private String hostAddress;
29 private SilvercrestWifiSocketResponseType type;
30 private SilvercrestWifiSocketVendor vendor;
33 * Default constructor.
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
40 public SilvercrestWifiSocketResponse(final String macAddress, final String hostAddress,
41 final SilvercrestWifiSocketResponseType type, final SilvercrestWifiSocketVendor vendor) {
43 this.macAddress = macAddress;
44 this.hostAddress = hostAddress;
52 * @param macAddress the mac address
53 * @param type the {@link SilvercrestWifiSocketResponseType}
54 * @param vendor the vendor of the socket
56 public SilvercrestWifiSocketResponse(final String macAddress, final SilvercrestWifiSocketResponseType type,
57 final SilvercrestWifiSocketVendor vendor) {
58 this(macAddress, null, type, vendor);
61 public String getMacAddress() {
62 return this.macAddress;
65 public void setMacAddress(final String macAddress) {
66 this.macAddress = macAddress;
69 public SilvercrestWifiSocketResponseType getType() {
73 public void setType(final SilvercrestWifiSocketResponseType type) {
77 public String getHostAddress() {
78 return this.hostAddress;
81 public void setHostAddress(final String hostAddress) {
82 this.hostAddress = hostAddress;
85 public SilvercrestWifiSocketVendor getVendor() {
89 public void setVendor(SilvercrestWifiSocketVendor vendor) {