2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.plex.internal.dto;
15 import java.util.List;
17 import com.google.gson.annotations.Expose;
18 import com.google.gson.annotations.SerializedName;
21 * @author Brian Homeyer - Initial contribution
22 * @author Aron Beurskens - Binding development
24 public class NotificationContainer {
26 @SerializedName("NotificationContainer")
28 private InnerNotificationContainer notificationContainer;
30 public InnerNotificationContainer getNotificationContainer() {
31 return notificationContainer;
34 public void setNotificationContainer(InnerNotificationContainer notificationContainer) {
35 this.notificationContainer = notificationContainer;
38 public class InnerNotificationContainer {
40 @SerializedName("type")
43 @SerializedName("size")
46 @SerializedName("PlaySessionStateNotification")
48 private List<PlaySessionStateNotification> playSessionStateNotification = null;
50 public String getType() {
54 public void setType(String type) {
58 public Integer getSize() {
62 public void setSize(Integer size) {
66 public List<PlaySessionStateNotification> getPlaySessionStateNotification() {
67 return playSessionStateNotification;
70 public void setPlaySessionStateNotification(List<PlaySessionStateNotification> playSessionStateNotification) {
71 this.playSessionStateNotification = playSessionStateNotification;
74 public class PlaySessionStateNotification {
76 @SerializedName("sessionKey")
78 private String sessionKey;
79 @SerializedName("guid")
82 @SerializedName("ratingKey")
84 private String ratingKey;
85 @SerializedName("url")
88 @SerializedName("key")
91 @SerializedName("viewOffset")
93 private Integer viewOffset;
94 @SerializedName("playQueueItemID")
96 private Integer playQueueItemID;
97 @SerializedName("state")
101 public String getSessionKey() {
105 public void setSessionKey(String sessionKey) {
106 this.sessionKey = sessionKey;
109 public String getGuid() {
113 public void setGuid(String guid) {
117 public String getRatingKey() {
121 public void setRatingKey(String ratingKey) {
122 this.ratingKey = ratingKey;
125 public String getUrl() {
129 public void setUrl(String url) {
133 public String getKey() {
137 public void setKey(String key) {
141 public Integer getViewOffset() {
145 public void setViewOffset(Integer viewOffset) {
146 this.viewOffset = viewOffset;
149 public Integer getPlayQueueItemID() {
150 return playQueueItemID;
153 public void setPlayQueueItemID(Integer playQueueItemID) {
154 this.playQueueItemID = playQueueItemID;
157 public String getState() {
161 public void setState(String state) {