]> git.basschouten.com Git - openhab-addons.git/blob
671a77e6cff0fc6cc1d9e5a0e4b093193c87c689
[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 FreeboxFtthStatus} is the Java class used to map the "FtthStatus"
17  * structure used by the response of the connection Ftth status API
18  * https://dev.freebox.fr/sdk/os/connection/#
19  *
20  * @author GaĆ«l L'hopital - Initial contribution
21  */
22 public class FreeboxFtthStatus {
23     private boolean sfp_present;
24     private boolean sfp_alim_ok;
25     private boolean sfp_has_power_report;
26     private boolean sfp_has_signal;
27     private boolean link;
28     private String sfp_serial;
29     private String sfp_model;
30     private String sfp_vendor;
31     private long sfp_pwr_tx;
32     private long sfp_pwr_rx;
33
34     public boolean getSfpPresent() {
35         return sfp_present;
36     }
37
38     public boolean getSfpAlimOk() {
39         return sfp_alim_ok;
40     }
41
42     public boolean getSfpHasPowerReport() {
43         return sfp_has_power_report;
44     }
45
46     public boolean getSfpHasSignal() {
47         return sfp_has_signal;
48     }
49
50     public boolean getLink() {
51         return link;
52     }
53
54     public String getSfpSerial() {
55         return sfp_serial;
56     }
57
58     public String getSfpModel() {
59         return sfp_model;
60     }
61
62     public String getSfpVendor() {
63         return sfp_vendor;
64     }
65
66     public long getSfpPwrTx() {
67         return sfp_pwr_tx;
68     }
69
70     public long getSfpPwrRx() {
71         return sfp_pwr_rx;
72     }
73 }