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.freebox.internal.api.model;
16 * The {@link FreeboxConnectionStatus} is the Java class used to map the "ConnectionStatus"
17 * structure used by the connection API
18 * https://dev.freebox.fr/sdk/os/connection/#
20 * @author Laurent Garnier - Initial contribution
22 public class FreeboxConnectionStatus {
29 private long rateDown;
30 private long bandwidthUp;
31 private long bandwidthDown;
33 private long bytesDown;
34 private Long[] ipv4PortRange;
36 public String getState() {
40 public String getType() {
44 public String getMedia() {
48 public String getIpv4() {
52 public String getIpv6() {
56 public long getRateUp() {
60 public long getRateDown() {
64 public long getBandwidthUp() {
68 public long getBandwidthDown() {
72 public long getBytesUp() {
76 public long getBytesDown() {
80 public Long getIpvPortMin() {
81 return ipv4PortRange[0];
84 public Long getIpvPortMax() {
85 return ipv4PortRange[1];