]> git.basschouten.com Git - openhab-addons.git/blob
c3427f739009f10f169041ba4919f0ec0d3ba043
[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.vigicrues.internal.dto.hubeau;
14
15 import java.util.List;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * The {@link HubEauResponse} is the Java class used to map the JSON
21  * response to an HubEau webservice endpoint request.
22  *
23  * @author GaĆ«l L'hopital - Initial contribution
24  */
25 public class HubEauResponse {
26     public class StationData {
27         @SerializedName("en_service")
28         public boolean enService;
29
30         @SerializedName("code_station")
31         public String codeStation;
32
33         @SerializedName("libelle_station")
34         public String libelleStation;
35
36         @SerializedName("longitude_station")
37         public double longitudeStation;
38
39         @SerializedName("latitude_station")
40         public double latitudeStation;
41
42         @SerializedName("libelle_cours_eau")
43         public String libelleCoursEau;
44         /*
45          * Currently unused, maybe interesting in the future
46          *
47          * @SerializedName("code_site")
48          * public String codeSite;
49          *
50          * @SerializedName("libelle_site")
51          * public String libelleSite;
52          *
53          * @SerializedName("type_station")
54          * public String typeStation;
55          *
56          * @SerializedName("coordonnee_x_station")
57          * public int coordonneeXStation;
58          *
59          * @SerializedName("coordonnee_y_station")
60          * public int coordonneeYStation;
61          *
62          * @SerializedName("code_projection")
63          * public int codeProjection;
64          *
65          * @SerializedName("influence_locale_station")
66          * public int influenceLocaleStation;
67          *
68          * @SerializedName("commentaire_station")
69          * public String commentaireStation;
70          *
71          * @SerializedName("altitude_ref_alti_station")
72          * public double altitudeRefAltiStation;
73          *
74          * @SerializedName("code_systeme_alti_site")
75          * public int codeSystemeAltiSite;
76          *
77          * @SerializedName("code_commune_station")
78          * public String codeCommuneStation;
79          *
80          * @SerializedName("libelle_commune")
81          * public String libelleCommune;
82          *
83          * @SerializedName("code_departement")
84          * public String codeDepartement;
85          *
86          * @SerializedName("code_region")
87          * public String codeRegion;
88          *
89          * @SerializedName("libelle_region")
90          * public String libelleRegion;
91          *
92          * @SerializedName("code_cours_eau")
93          * public String codeCoursEau;
94          *
95          * @SerializedName("uri_cours_eau")
96          * public String uriCoursEau;
97          *
98          * @SerializedName("descriptif_station")
99          * public String descriptifStation;
100          *
101          * @SerializedName("date_maj_station")
102          * public String dateMajStation;
103          *
104          * @SerializedName("date_ouverture_station")
105          * public String dateOuvertureStation;
106          *
107          * @SerializedName("date_fermeture_station")
108          * public String dateFermetureStation;
109          *
110          * @SerializedName("commentaire_influence_locale_station")
111          * public String commentaireInfluenceLocaleStation;
112          *
113          * @SerializedName("code_regime_station")
114          * public int codeRegimeStation;
115          *
116          * @SerializedName("qualification_donnees_station")
117          * public int qualificationDonneesStation;
118          *
119          * @SerializedName("code_finalite_station")
120          * public int codeFinaliteStation;
121          *
122          * @SerializedName("type_contexte_loi_stat_station")
123          * public int typeContexteLoiStatStation;
124          *
125          * @SerializedName("type_loi_station")
126          * public int typeLoiStation;
127          *
128          * @SerializedName("code_sandre_reseau_station")
129          * public List<String> codeSandreReseauStation;
130          *
131          * @SerializedName("date_debut_ref_alti_station")
132          * public String dateDebutRefAltiStation;
133          *
134          * @SerializedName("date_activation_ref_alti_station")
135          * public String dateActivationRefAltiStation;
136          *
137          * @SerializedName("date_maj_ref_alti_station")
138          * public String dateMajRefAltiStation;
139          *
140          * @SerializedName("libelle_departement")
141          * public String libelleDepartement;
142          * public Geometry geometry;
143          */
144     }
145
146     public int count;
147     @SerializedName("data")
148     public List<StationData> stations;
149
150     /*
151      * Currently unused, could be interesting in the future
152      * public String first;
153      * public String last;
154      * public String prev;
155      * public String next;
156      *
157      * @SerializedName("api_version")
158      * public String apiVersion;
159      *
160      * public class Crs {
161      * public String type;
162      * public Properties properties;
163      * }
164      *
165      * public class Properties {
166      * public String name;
167      * }
168      *
169      * public class Geometry {
170      * public String type;
171      * public Crs crs;
172      * public List<Double> coordinates;
173      * }
174      */
175 }