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.nuki.internal.dto;
15 import org.openhab.binding.nuki.internal.constants.NukiBindingConstants;
16 import org.openhab.core.thing.ThingUID;
19 * The {@link WebApiBridgeDiscoveryDto} class defines the Data Transfer Object (POJO) for bridge object
20 * the https://api.nuki.io/discover/bridges Web API.
22 * @author Jan Vybíral - Initial contribution
24 public class WebApiBridgeDto {
25 private String bridgeId;
28 private String dateUpdated;
30 public String getBridgeId() {
34 public void setBridgeId(String bridgeId) {
35 this.bridgeId = bridgeId;
38 public String getIp() {
42 public void setIp(String ip) {
46 public int getPort() {
50 public void setPort(int port) {
54 public String getDateUpdated() {
58 public void setDateUpdated(String dateUpdated) {
59 this.dateUpdated = dateUpdated;
63 public String toString() {
64 return "WebApiBridgeDto{" + "bridgeId='" + bridgeId + '\'' + ", ip='" + ip + '\'' + ", port=" + port
65 + ", dateUpdated='" + dateUpdated + '\'' + '}';
68 public ThingUID getThingUid() {
69 return new ThingUID(NukiBindingConstants.THING_TYPE_BRIDGE, getBridgeId());