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 * Tuple to store both the {@link UniFiPortTable}, which contains the all information related to the port,
17 * and the {@link UnfiPortOverrideJsonElement}, which contains the raw json data of the port override.
19 * @author Hilbrand Bouwkamp - Initial contribution
21 public class UniFiPortTuple {
23 private UniFiDevice device;
25 private UniFiPortTable table;
27 private UnfiPortOverrideJsonElement jsonElement;
29 public UniFiDevice getDevice() {
33 public void setDevice(final UniFiDevice device) {
37 public int getPortIdx() {
38 return table == null ? 0 : table.getPortIdx();
41 public UniFiPortTable getTable() {
45 public void setTable(final UniFiPortTable table) {
49 public UnfiPortOverrideJsonElement getJsonElement() {
53 public void setJsonElement(final UnfiPortOverrideJsonElement jsonElement) {
54 this.jsonElement = jsonElement;