]> git.basschouten.com Git - openhab-addons.git/blob
6bfb7dc9f5e644966266f924542de73cdd30f064
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.meteoalerte.internal.json;
14
15 import java.util.Optional;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19
20 import com.google.gson.annotations.SerializedName;
21
22 /**
23  * The {@link Parameters} is the Java class used to map the JSON
24  * response to the webservice request.
25  *
26  * @author GaĆ«l L'hopital - Initial contribution
27  */
28 @NonNullByDefault
29 public class Parameters {
30     private String dataset = "";
31     @SerializedName("timezone")
32     private String timeZone = "";
33     private int rows;
34     private String format = "";
35     private @Nullable Refine refine;
36
37     public String getDataset() {
38         return dataset;
39     }
40
41     public String getTimezone() {
42         return timeZone;
43     }
44
45     public int getRows() {
46         return rows;
47     }
48
49     public String getFormat() {
50         return format;
51     }
52
53     public Optional<Refine> getRefine() {
54         return Optional.ofNullable(refine);
55     }
56 }