]> git.basschouten.com Git - openhab-addons.git/blob
ae5eaf041c4d42579c280d82306a1da8e0992554
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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 FreeboxXdslStatus} is the Java class used to map the "XdslStatus"
17  * structure used by the response of the connection xDSL status API
18  * https://dev.freebox.fr/sdk/os/connection/#
19  *
20  * @author Laurent Garnier - Initial contribution
21  */
22 public class FreeboxXdslStatus {
23     public static class InternalXdslStatus {
24         private String status;
25         private String protocol;
26         private String modulation;
27         private long uptime;
28     }
29
30     private InternalXdslStatus status;
31
32     public String getStatus() {
33         return status.status;
34     }
35
36     public String getProtocol() {
37         return status.protocol;
38     }
39
40     public String getModulation() {
41         return status.modulation;
42     }
43
44     public long getUptime() {
45         return status.uptime;
46     }
47 }