]> git.basschouten.com Git - openhab-addons.git/blob
91e9ed152d7e22fbd3d52f5428a3264868fb7b9c
[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 org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * The {@link JsonNotificationResponse} encapsulate the GSON data for the result of a notification request
20  *
21  * @author Michael Geramb - Initial contribution
22  */
23 @NonNullByDefault
24 public class JsonNotificationResponse {
25     // This is only a partial definition, see the example JSON below
26     public long alarmTime;
27     public long createdDate;
28     public @Nullable String deviceSerialNumber;
29     public @Nullable String deviceType;
30     public @Nullable String id;
31     public @Nullable String status;
32     public @Nullable String type;
33     public long remainingTime;
34     public @Nullable String recurringPattern;
35     public @Nullable String originalDate;
36     public @Nullable String originalTime;
37 }
38
39 /*
40  * Example JSON:
41  * {
42  *    "alarmTime":1518864868060,
43  *    "createdDate":1518864863801,
44  *    "deviceSerialNumber":"XXXXXXXXXX",
45  *    "deviceType":"XXXXXXXXXX",
46  *    "id":"XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX",
47  *    "musicAlarmId":null,
48  *    "musicEntity":null,
49  *    "notificationIndex":"XXXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX",
50  *    "originalDate":null,
51  *    "originalTime":"11:54:28.060",
52  *    "provider":null,
53  *    "recurringPattern":null,
54  *    "remainingTime":0,
55  *    "reminderLabel":null,
56  *    "sound":{
57  *       "displayName":"Clarity",
58  *       "folder":null,
59  *       "id":"system_alerts_melodic_05",
60  *       "providerId":"ECHO",
61  *       "sampleUrl":"https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_05.mp3"
62  *    },
63  *    "status":"OFF",
64  *    "timeZoneId":null,
65  *    "timerLabel":null,
66  *    "triggerTime":0,
67  *    "type":"Alarm",
68  *    "version":"2",
69  *    "alarmIndex":null,
70  *    "isSaveInFlight":true
71  * }
72  *
73  */