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;
16 * The {@link PauseModeResponse} holds the response to the request to pause the bed data collection.
18 * @author Mark Hilbush - Initial contribution
20 public class PauseModeResponse {
21 private String accountId;
23 private String pauseMode;
25 public String getAccountId() {
29 public void setAccountId(String accountId) {
30 this.accountId = accountId;
33 public PauseModeResponse withAccountId(String accountId) {
34 setAccountId(accountId);
38 public String getBedId() {
42 public void setBedId(String bedId) {
46 public PauseModeResponse withBedId(String bedId) {
51 public String getPauseMode() {
55 public void setPauseMode(String pauseMode) {
56 this.pauseMode = pauseMode;
59 public PauseModeResponse withPauseMode(String pauseMode) {
60 setPauseMode(pauseMode);
65 public int hashCode() {
68 result = prime * result + ((accountId == null) ? 0 : accountId.hashCode());
69 result = prime * result + ((bedId == null) ? 0 : bedId.hashCode());
74 public boolean equals(Object obj) {
81 if (!(obj instanceof PauseModeResponse)) {
84 PauseModeResponse other = (PauseModeResponse) obj;
85 if (accountId == null) {
86 if (other.accountId != null) {
89 } else if (!accountId.equals(other.accountId)) {
93 if (other.bedId != null) {
96 } else if (!bedId.equals(other.bedId)) {
103 public String toString() {
104 StringBuilder builder = new StringBuilder();
105 builder.append("PauseMode [accountId=");
106 builder.append(accountId);
107 builder.append(", bedId=");
108 builder.append(bedId);
109 builder.append(", pauseMode=");
110 builder.append(pauseMode);
112 return builder.toString();