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.revogi.internal.api;
15 import java.util.Objects;
18 * @author Andi Bräu - Initial contribution
20 public class DiscoveryRawResponseDTO {
22 private final int response;
23 private final DiscoveryResponseDTO data;
24 private String ipAddress;
26 public DiscoveryRawResponseDTO(int response, DiscoveryResponseDTO data) {
27 this.response = response;
31 public int getResponse() {
35 public DiscoveryResponseDTO getData() {
39 public String getIpAddress() {
43 public void setIpAddress(String ipAddress) {
44 this.ipAddress = ipAddress;
48 public boolean equals(Object o) {
52 if (o == null || getClass() != o.getClass()) {
55 DiscoveryRawResponseDTO that = (DiscoveryRawResponseDTO) o;
56 return response == that.response && data.equals(that.data) && Objects.equals(ipAddress, that.ipAddress);
60 public int hashCode() {
61 return Objects.hash(response, data, ipAddress);