]> git.basschouten.com Git - openhab-addons.git/blob
927945b1ced7742d61f66e5eff7b0533b13e09d3
[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.ambientweather.internal.model;
14
15 /**
16  * The {@link DeviceJson} is the JSON object returned
17  * by the Ambient Weather '/v1/devices' command.
18  * Note that there is nothing in the JSON that defines the type (e.g.
19  * WS-1400-IP, WS-8482, etc.) of weather station.
20  *
21  * @author Mark Hilbush - Initial Contribution
22  */
23 public class DeviceJson {
24     /*
25      * The weather station's MAC address
26      */
27     public String macAddress;
28
29     /*
30      * API key to which this device is associated
31      */
32     public String apiKey;
33
34     /*
35      * User-supplied information about the station, such as name and location
36      */
37     public StationInfoJson info;
38
39     /*
40      * Placeholder for weather data, which varies by station.
41      */
42     public Object lastData;
43 }