]> git.basschouten.com Git - openhab-addons.git/blob
9540aa6e819dcdba6f197565f57091d3edc5cbc8
[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
14 package org.openhab.binding.speedtest.internal.dto;
15
16 import java.util.List;
17
18 import com.google.gson.annotations.Expose;
19 import com.google.gson.annotations.SerializedName;
20
21 /**
22  * The {@link ResultsContainerServerList} class defines a container for the Speedtest server list.
23  *
24  * @author Brian Homeyer - Initial contribution
25  */
26
27 public class ResultsContainerServerList {
28     @SerializedName("type")
29     @Expose
30     public String type;
31     @SerializedName("timestamp")
32     @Expose
33     public String timestamp;
34     @SerializedName("servers")
35     @Expose
36     public List<Server> servers = null;
37
38     public class Server {
39
40         @SerializedName("id")
41         @Expose
42         public Integer id;
43         @SerializedName("name")
44         @Expose
45         public String name;
46         @SerializedName("location")
47         @Expose
48         public String location;
49         @SerializedName("country")
50         @Expose
51         public String country;
52         @SerializedName("host")
53         @Expose
54         public String host;
55         @SerializedName("port")
56         @Expose
57         public Integer port;
58     }
59 }