]> git.basschouten.com Git - openhab-addons.git/blob
b356b8e580ee52e3fbb2add9b7c69d234eb6c5c8
[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.boschindego.internal.dto.response;
14
15 import org.openhab.binding.boschindego.internal.dto.response.runtime.DeviceStateRuntimes;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * Response after querying the device status.
21  * 
22  * @author Jacob Laursen - Initial contribution
23  */
24 public class DeviceStateResponse {
25
26     public int state;
27
28     public int error;
29
30     public boolean enabled;
31
32     @SerializedName("map_update_available")
33     public boolean mapUpdateAvailable;
34
35     public int mowed;
36
37     @SerializedName("mowmode")
38     public long mowMode;
39
40     public int xPos;
41
42     public int yPos;
43
44     /**
45      * This is returned only for non-longpoll requests.
46      */
47     public DeviceStateRuntimes runtime;
48
49     /**
50      * This is returned only for longpoll requests.
51      */
52     public long charge;
53
54     /**
55      * This is returned only for longpoll requests.
56      */
57     public long operate;
58
59     @SerializedName("mowed_ts")
60     public long mowedTimestamp;
61
62     @SerializedName("mapsvgcache_ts")
63     public long mapSvgCacheTimestamp;
64
65     @SerializedName("svg_xPos")
66     public int svgXPos;
67
68     @SerializedName("svg_yPos")
69     public int svgYPos;
70
71     @SerializedName("config_change")
72     public boolean configChange;
73
74     @SerializedName("mow_trig")
75     public boolean mowTrigger;
76 }