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