]> git.basschouten.com Git - openhab-addons.git/blob
1c5487744554dd5051d98a557126c08c4dbeefbc
[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.somfytahoma.internal.model;
14
15 import java.util.ArrayList;
16 import java.util.List;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19
20 import com.google.gson.JsonElement;
21 import com.google.gson.JsonObject;
22
23 /**
24  * The {@link SomfyTahomaEvent} holds information about Tahoma
25  * event.
26  *
27  * @author Ondrej Pecta - Initial contribution
28  */
29 @NonNullByDefault
30 public class SomfyTahomaEvent {
31     private String name = "";
32     private String deviceURL = "";
33     private String newState = "";
34     private String execId = "";
35     private String gatewayId = "";
36     private List<SomfyTahomaState> deviceStates = new ArrayList<>();
37     private JsonElement action = new JsonObject();
38
39     public String getName() {
40         return name;
41     }
42
43     public String getDeviceUrl() {
44         return deviceURL;
45     }
46
47     public String getGatewayId() {
48         return gatewayId;
49     }
50
51     public String getNewState() {
52         return newState;
53     }
54
55     public String getExecId() {
56         return execId;
57     }
58
59     public List<SomfyTahomaState> getDeviceStates() {
60         return deviceStates;
61     }
62
63     public JsonElement getAction() {
64         return action;
65     }
66 }