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.nest.internal.wwn.dto;
16 * The data for a WWN camera activity zone.
18 * @author David Bennett - Initial contribution
19 * @author Wouter Born - Extract ActivityZone object from Camera
21 public class WWNActivityZone {
26 public String getName() {
35 public boolean equals(Object obj) {
42 if (getClass() != obj.getClass()) {
45 WWNActivityZone other = (WWNActivityZone) obj;
50 if (other.name != null) {
53 } else if (!name.equals(other.name)) {
60 public int hashCode() {
63 result = prime * result + id;
64 result = prime * result + ((name == null) ? 0 : name.hashCode());
69 public String toString() {
70 StringBuilder builder = new StringBuilder();
71 builder.append("CameraActivityZone [name=").append(name).append(", id=").append(id).append("]");
72 return builder.toString();