1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package tv.plex.domain;
20
21 import java.io.Serializable;
22 import java.util.ArrayList;
23 import java.util.Collection;
24
25 import javax.xml.bind.annotation.XmlAttribute;
26 import javax.xml.bind.annotation.XmlElement;
27 import javax.xml.bind.annotation.XmlRootElement;
28
29 @XmlRootElement(name="MediaContainer")
30 public class MediaContainer implements Serializable {
31
32 private static final long serialVersionUID = 1L;
33 private int size;
34 private String allowSync;
35 private String art;
36 private String content;
37 private String identifier;
38 private String mediaTagPrefix;
39 private String mediaTagVersion;
40 private String title1;
41 private String title2;
42
43 Collection<Directory> directories = new ArrayList<Directory>();
44 Collection<Video> videos = new ArrayList<Video>();
45
46
47
48
49 @XmlAttribute
50 public int getSize() {
51 return size;
52 }
53
54
55
56 public void setSize(int size) {
57 this.size = size;
58 }
59
60
61
62 @XmlAttribute
63 public String getAllowSync() {
64 return allowSync;
65 }
66
67
68
69 public void setAllowSync(String allowSync) {
70 this.allowSync = allowSync;
71 }
72
73
74
75 @XmlAttribute
76 public String getArt() {
77 return art;
78 }
79
80
81
82 public void setArt(String art) {
83 this.art = art;
84 }
85
86
87
88 @XmlAttribute
89 public String getContent() {
90 return content;
91 }
92
93
94
95 public void setContent(String content) {
96 this.content = content;
97 }
98
99
100
101 @XmlAttribute
102 public String getIdentifier() {
103 return identifier;
104 }
105
106
107
108 public void setIdentifier(String identifier) {
109 this.identifier = identifier;
110 }
111
112
113
114 @XmlAttribute
115 public String getMediaTagPrefix() {
116 return mediaTagPrefix;
117 }
118
119
120
121 public void setMediaTagPrefix(String mediaTagPrefix) {
122 this.mediaTagPrefix = mediaTagPrefix;
123 }
124
125
126
127 @XmlAttribute
128 public String getMediaTagVersion() {
129 return mediaTagVersion;
130 }
131
132
133
134 public void setMediaTagVersion(String mediaTagVersion) {
135 this.mediaTagVersion = mediaTagVersion;
136 }
137
138
139
140 @XmlAttribute
141 public String getTitle1() {
142 return title1;
143 }
144
145
146
147 public void setTitle1(String title1) {
148 this.title1 = title1;
149 }
150
151
152
153 @XmlAttribute
154 public String getTitle2() {
155 return title2;
156 }
157
158
159
160 public void setTitle2(String title2) {
161 this.title2 = title2;
162 }
163
164
165
166 @XmlElement(name = "Directory")
167 public Collection<Directory> getDirectories() {
168 return directories;
169 }
170
171
172
173 public void setDirectories(Collection<Directory> directories) {
174 this.directories = directories;
175 }
176
177
178
179 public Collection<Video> getVideos() {
180 return videos;
181 }
182
183
184
185 @XmlElement(name = "Video")
186 public void setVideos(Collection<Video> videos) {
187 this.videos = videos;
188 }
189 }