2 * Copyright (c) 2010-2022 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.etherrain.internal.api;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link EtherRainUdpResponse} is an encapsulation of the UDP broadcast response from the EtherRain
20 * @author Joe Inkenbrandt - Initial contribution
24 public class EtherRainUdpResponse {
25 private final boolean valid;
26 private final String type;
27 private final String address;
28 private final int port;
29 private final String uniqueName;
30 private final String additionalParameters; // Note: version 3.77 of spec says this is unused
32 public EtherRainUdpResponse(String type, String address, int port, String uniqueName, String additionalParameters) {
35 this.address = address;
37 this.uniqueName = uniqueName;
38 this.additionalParameters = additionalParameters;
41 public EtherRainUdpResponse() {
47 this.additionalParameters = "";
50 public boolean isValid() {
54 public String getType() {
58 public String getAddress() {
62 public int getPort() {
66 public String getUnqiueName() {
70 public String getAdditionalParameters() {
71 return additionalParameters;