]> git.basschouten.com Git - openhab-addons.git/blob
92389c207c6cb4eaa951543e532695d4522caba1
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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 JsonMediaState} encapsulate the GSON data of the current media state
20  *
21  * @author Michael Geramb - Initial contribution
22  */
23 @NonNullByDefault
24 public class JsonMediaState {
25
26     public @Nullable String clientId;
27     public @Nullable String contentId;
28     public @Nullable String contentType;
29     public @Nullable String currentState;
30     public @Nullable String imageURL;
31     public boolean isDisliked;
32     public boolean isLiked;
33     public boolean looping;
34     public @Nullable String mediaOwnerCustomerId;
35     public boolean muted;
36     public @Nullable String programId;
37     public int progressSeconds;
38     public @Nullable String providerId;
39     public @Nullable QueueEntry @Nullable [] queue;
40     public @Nullable String queueId;
41     public @Nullable Integer queueSize;
42     public @Nullable String radioStationId;
43     public int radioVariety;
44     public @Nullable String referenceId;
45     public @Nullable String service;
46     public boolean shuffling;
47     // public long timeLastShuffled; parsing fails with some values, so do not use it
48     public int volume;
49
50     public static class QueueEntry {
51
52         public @Nullable String album;
53         public @Nullable String albumAsin;
54         public @Nullable String artist;
55         public @Nullable String asin;
56         public @Nullable String cardImageURL;
57         public @Nullable String contentId;
58         public @Nullable String contentType;
59         public int durationSeconds;
60         public boolean feedbackDisabled;
61         public @Nullable String historicalId;
62         public @Nullable String imageURL;
63         public int index;
64         public boolean isAd;
65         public boolean isDisliked;
66         public boolean isFreeWithPrime;
67         public boolean isLiked;
68         public @Nullable String programId;
69         public @Nullable String programName;
70         public @Nullable String providerId;
71         public @Nullable String queueId;
72         public @Nullable String radioStationCallSign;
73         public @Nullable String radioStationId;
74         public @Nullable String radioStationLocation;
75         public @Nullable String radioStationSlogan;
76         public @Nullable String referenceId;
77         public @Nullable String service;
78         public @Nullable String startTime;
79         public @Nullable String title;
80         public @Nullable String trackId;
81         public @Nullable String trackStatus;
82     }
83 }