]> git.basschouten.com Git - openhab-addons.git/blob
0d1694a2cd9f8965bc74f6f8b51f3e263ee2401a
[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.plex.internal.dto;
14
15 import java.util.List;
16
17 import com.google.gson.annotations.Expose;
18 import com.google.gson.annotations.SerializedName;
19
20 /**
21  * @author Brian Homeyer - Initial contribution
22  * @author Aron Beurskens - Binding development
23  */
24 public class NotificationContainer {
25
26     @SerializedName("NotificationContainer")
27     @Expose
28     private InnerNotificationContainer notificationContainer;
29
30     public InnerNotificationContainer getNotificationContainer() {
31         return notificationContainer;
32     }
33
34     public void setNotificationContainer(InnerNotificationContainer notificationContainer) {
35         this.notificationContainer = notificationContainer;
36     }
37
38     public class InnerNotificationContainer {
39
40         @SerializedName("type")
41         @Expose
42         private String type;
43         @SerializedName("size")
44         @Expose
45         private Integer size;
46         @SerializedName("PlaySessionStateNotification")
47         @Expose
48         private List<PlaySessionStateNotification> playSessionStateNotification = null;
49
50         public String getType() {
51             return type;
52         }
53
54         public void setType(String type) {
55             this.type = type;
56         }
57
58         public Integer getSize() {
59             return size;
60         }
61
62         public void setSize(Integer size) {
63             this.size = size;
64         }
65
66         public List<PlaySessionStateNotification> getPlaySessionStateNotification() {
67             return playSessionStateNotification;
68         }
69
70         public void setPlaySessionStateNotification(List<PlaySessionStateNotification> playSessionStateNotification) {
71             this.playSessionStateNotification = playSessionStateNotification;
72         }
73
74         public class PlaySessionStateNotification {
75
76             @SerializedName("sessionKey")
77             @Expose
78             private String sessionKey;
79             @SerializedName("guid")
80             @Expose
81             private String guid;
82             @SerializedName("ratingKey")
83             @Expose
84             private String ratingKey;
85             @SerializedName("url")
86             @Expose
87             private String url;
88             @SerializedName("key")
89             @Expose
90             private String key;
91             @SerializedName("viewOffset")
92             @Expose
93             private Integer viewOffset;
94             @SerializedName("playQueueItemID")
95             @Expose
96             private Integer playQueueItemID;
97             @SerializedName("state")
98             @Expose
99             private String state;
100
101             public String getSessionKey() {
102                 return sessionKey;
103             }
104
105             public void setSessionKey(String sessionKey) {
106                 this.sessionKey = sessionKey;
107             }
108
109             public String getGuid() {
110                 return guid;
111             }
112
113             public void setGuid(String guid) {
114                 this.guid = guid;
115             }
116
117             public String getRatingKey() {
118                 return ratingKey;
119             }
120
121             public void setRatingKey(String ratingKey) {
122                 this.ratingKey = ratingKey;
123             }
124
125             public String getUrl() {
126                 return url;
127             }
128
129             public void setUrl(String url) {
130                 this.url = url;
131             }
132
133             public String getKey() {
134                 return key;
135             }
136
137             public void setKey(String key) {
138                 this.key = key;
139             }
140
141             public Integer getViewOffset() {
142                 return viewOffset;
143             }
144
145             public void setViewOffset(Integer viewOffset) {
146                 this.viewOffset = viewOffset;
147             }
148
149             public Integer getPlayQueueItemID() {
150                 return playQueueItemID;
151             }
152
153             public void setPlayQueueItemID(Integer playQueueItemID) {
154                 this.playQueueItemID = playQueueItemID;
155             }
156
157             public String getState() {
158                 return state;
159             }
160
161             public void setState(String state) {
162                 this.state = state;
163             }
164         }
165     }
166 }