]> git.basschouten.com Git - openhab-addons.git/blob
f2623b2f2c4e26d29f099bb5e7850236c82a4613
[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.amazonechocontrol.internal.jsons;
14
15 import java.util.List;
16 import java.util.TreeMap;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.eclipse.jdt.annotation.Nullable;
20
21 /**
22  * The {@link JsonAutomation} encapsulate the GSON data of automation query
23  *
24  * @author Michael Geramb - Initial contribution
25  */
26 @NonNullByDefault
27 public class JsonAutomation {
28     public @Nullable String automationId;
29     public @Nullable String name;
30     public @Nullable List<Trigger> triggers;
31     public @Nullable TreeMap<String, Object> sequence;
32     public @Nullable String status;
33     public long creationTimeEpochMillis;
34     public long lastUpdatedTimeEpochMillis;
35
36     public static class Trigger {
37         public @Nullable Payload payload;
38         public @Nullable String id;
39         public @Nullable String type;
40     }
41
42     public static class Payload {
43         public @Nullable String customerId;
44         public @Nullable String utterance;
45         public @Nullable String locale;
46         public @Nullable String marketplaceId;
47     }
48 }