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.unifi.internal.api.dto;
16 * The {@link UniFiPortTable} represents the data model of UniFi port table, which is an extend of port override.
18 * @author Hilbrand Bouwkamp - Initial contribution
20 public class UniFiPortTable extends UnfiPortOverride {
22 private transient UniFiDevice device;
26 private boolean enable;
31 * If true supports PoE.
33 private boolean portPoe;
35 private boolean poeEnable;
37 private String poePower;
39 private String poeVoltage;
41 private String poeCurrent;
43 public UniFiDevice getDevice() {
47 public void setDevice(final UniFiDevice device) {
51 public String getName() {
55 public boolean isUp() {
59 public boolean isEnabled() {
63 public boolean isPortPoe() {
67 public boolean isPoeEnabled() {
71 public String getPoePower() {
75 public String getPoeVoltage() {
79 public String getPoeCurrent() {
84 public String toString() {
86 "UniFiPortTable{name: '%s', enable: '%b', up: '%b', portPoe: '%b', poeEnable: '%b, poePower: '%s', poeVoltage: '%s', poeCurrent: '%s'}",
87 name, enable, up, portPoe, poeEnable, poePower, poeVoltage, poeCurrent);