]> git.basschouten.com Git - openhab-addons.git/blob
44d556256dc2809b8f374fa586ecf285d52bd6b0
[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.orbitbhyve.internal.model;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 import com.google.gson.JsonElement;
18 import com.google.gson.JsonObject;
19 import com.google.gson.annotations.SerializedName;
20
21 /**
22  * The {@link OrbitBhyveSocketEvent} holds information about a B-Hyve
23  * event received on web socket.
24  *
25  * @author Ondrej Pecta - Initial contribution
26  */
27 @NonNullByDefault
28 public class OrbitBhyveSocketEvent {
29     String event = "";
30     String mode = "";
31     JsonElement program = new JsonObject();
32     int delay = 0;
33
34     @SerializedName("device_id")
35     String deviceId = "";
36
37     @SerializedName("current_station")
38     int station = 0;
39
40     public String getEvent() {
41         return event;
42     }
43
44     public String getMode() {
45         return mode;
46     }
47
48     public String getDeviceId() {
49         return deviceId;
50     }
51
52     public int getStation() {
53         return station;
54     }
55
56     public JsonElement getProgram() {
57         return program;
58     }
59
60     public int getDelay() {
61         return delay;
62     }
63 }