]> git.basschouten.com Git - openhab-addons.git/blob
5dfc641f13aed16c9d31ee0d74568ade68d8a294
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.freebox.internal.api.model;
14
15 /**
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/#
19  *
20  * @author Laurent Garnier - Initial contribution
21  */
22 public class FreeboxConnectionStatus {
23     private String state;
24     private String type;
25     private String media;
26     private String ipv4;
27     private String ipv6;
28     private long rateUp;
29     private long rateDown;
30     private long bandwidthUp;
31     private long bandwidthDown;
32     private long bytesUp;
33     private long bytesDown;
34     private Long[] ipv4PortRange;
35
36     public String getState() {
37         return state;
38     }
39
40     public String getType() {
41         return type;
42     }
43
44     public String getMedia() {
45         return media;
46     }
47
48     public String getIpv4() {
49         return ipv4;
50     }
51
52     public String getIpv6() {
53         return ipv6;
54     }
55
56     public long getRateUp() {
57         return rateUp;
58     }
59
60     public long getRateDown() {
61         return rateDown;
62     }
63
64     public long getBandwidthUp() {
65         return bandwidthUp;
66     }
67
68     public long getBandwidthDown() {
69         return bandwidthDown;
70     }
71
72     public long getBytesUp() {
73         return bytesUp;
74     }
75
76     public long getBytesDown() {
77         return bytesDown;
78     }
79
80     public Long getIpvPortMin() {
81         return ipv4PortRange[0];
82     }
83
84     public Long getIpvPortMax() {
85         return ipv4PortRange[1];
86     }
87 }