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.unifi.internal.api.dto;
15 import com.google.gson.annotations.Expose;
18 * The {@link UniFiPortTable} represents the data model of UniFi port table, which is an extend of port override.
20 * @author Hilbrand Bouwkamp - Initial contribution
22 public class UniFiPortTable {
28 private String portconfId;
31 private String poeMode;
35 private boolean enable;
40 * If true supports PoE.
42 private boolean portPoe;
44 private boolean poeEnable;
46 private String poePower;
48 private String poeVoltage;
50 private String poeCurrent;
52 public int getPortIdx() {
56 public String getPortconfId() {
60 public String getPoeMode() {
64 public String getName() {
68 public boolean isUp() {
72 public boolean isEnabled() {
76 public boolean isPortPoe() {
80 public boolean isPoeEnabled() {
84 public String getPoePower() {
88 public String getPoeVoltage() {
92 public String getPoeCurrent() {
97 public String toString() {
99 "UniFiPortTable{portIx: '%d', portconfId: '%s', poeMode: '%s', name: '%s', enable: '%b', up: '%b', portPoe: '%b', poeEnable: '%b, poePower: '%s', poeVoltage: '%s', poeCurrent: '%s'}",
100 portIdx, portconfId, poeMode, name, enable, up, portPoe, poeEnable, poePower, poeVoltage, poeCurrent);