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.sleepiq.internal.api.dto;
15 import java.util.List;
18 * The {@link BedsResponse} holds the BedsResponse response from the sleepiq API.
20 * @author Gregory Moyer - Initial contribution
22 public class BedsResponse {
23 private List<Bed> beds;
25 public List<Bed> getBeds() {
29 public void setBeds(List<Bed> beds) {
33 public BedsResponse withBeds(List<Bed> beds) {
39 public int hashCode() {
42 result = prime * result + ((beds == null) ? 0 : beds.hashCode());
47 public boolean equals(Object obj) {
54 if (!(obj instanceof BedsResponse)) {
57 BedsResponse other = (BedsResponse) obj;
59 if (other.beds != null) {
62 } else if (!beds.equals(other.beds)) {
69 public String toString() {
70 StringBuilder builder = new StringBuilder();
71 builder.append("BedsResponse [beds=");
74 return builder.toString();