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.homeconnect.internal.client.model;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * Home appliance model
21 * @author Jonas BrĂ¼stel - Initial contribution
25 public class HomeAppliance {
26 private final String name;
27 private final String brand;
28 private final String vib;
29 private final boolean connected;
30 private final String type;
31 private final String enumber;
32 private final String haId;
34 public HomeAppliance(String haId, String name, String brand, String vib, boolean connected, String type,
40 this.connected = connected;
42 this.enumber = enumber;
45 public String getName() {
49 public String getBrand() {
53 public String getVib() {
57 public boolean isConnected() {
61 public String getType() {
65 public String getEnumber() {
69 public String getHaId() {
74 public int hashCode() {
77 result = prime * result + haId.hashCode();
82 public boolean equals(@Nullable Object obj) {
89 if (getClass() != obj.getClass()) {
92 HomeAppliance other = (HomeAppliance) obj;
93 return haId.equals(other.haId);
97 public String toString() {
98 return "HomeAppliance [haId=" + haId + ", name=" + name + ", brand=" + brand + ", vib=" + vib + ", connected="
99 + connected + ", type=" + type + ", enumber=" + enumber + "]";