1
2
3
4
5
6
7
8 package com.buckosoft.BuckoVidLib.domain.rest;
9
10 import java.util.ArrayList;
11 import java.util.Collection;
12
13 import javax.xml.bind.annotation.XmlRootElement;
14
15 import com.buckosoft.BuckoVidLib.domain.Director;
16 import com.buckosoft.BuckoVidLib.domain.Genre;
17 import com.buckosoft.BuckoVidLib.domain.Role;
18 import com.buckosoft.BuckoVidLib.domain.Writer;
19
20
21
22
23
24
25 @XmlRootElement(name="DetailedVideo")
26 public class RestDetailedVideo {
27 private String title;
28 private int year;
29 private String hashKey;
30 private String studio;
31 private String summary;
32 private String tagline;
33 private Collection<Genre> genres = new ArrayList<Genre>();
34 private Collection<Writer> writers = new ArrayList<Writer>();
35 private Collection<Director> directors = new ArrayList<Director>();
36 private Collection<Role> roles = new ArrayList<Role>();
37 private Collection<RestActor> actors = new ArrayList<RestActor>();
38 private Collection<RestTVSeason> seasons = new ArrayList<RestTVSeason>();
39
40
41
42
43 public String getTitle() {
44 return title;
45 }
46
47
48
49 public void setTitle(String title) {
50 this.title = title;
51 }
52
53
54
55 public int getYear() {
56 return year;
57 }
58
59
60
61 public void setYear(int year) {
62 this.year = year;
63 }
64
65
66
67 public String getHashKey() {
68 return hashKey;
69 }
70
71
72
73 public void setHashKey(String hashKey) {
74 this.hashKey = hashKey;
75 }
76
77
78
79 public String getStudio() {
80 return studio;
81 }
82
83
84
85 public void setStudio(String studio) {
86 this.studio = studio;
87 }
88
89
90
91 public String getSummary() {
92 return summary;
93 }
94
95
96
97 public void setSummary(String summary) {
98 this.summary = summary;
99 }
100
101
102
103 public String getTagline() {
104 return tagline;
105 }
106
107
108
109 public void setTagline(String tagline) {
110 this.tagline = tagline;
111 }
112
113
114
115 public Collection<Genre> getGenres() {
116 return genres;
117 }
118
119
120
121 public void setGenres(Collection<Genre> genres) {
122 this.genres = genres;
123 }
124
125
126
127 public Collection<Writer> getWriters() {
128 return writers;
129 }
130
131
132
133 public void setWriters(Collection<Writer> writers) {
134 this.writers = writers;
135 }
136
137
138
139 public Collection<Director> getDirectors() {
140 return directors;
141 }
142
143
144
145 public void setDirectors(Collection<Director> directors) {
146 this.directors = directors;
147 }
148
149
150
151 public Collection<Role> getRoles() {
152 return roles;
153 }
154
155
156
157 public void setRoles(Collection<Role> roles) {
158 this.roles = roles;
159 }
160
161
162
163 public Collection<RestActor> getActors() {
164 return actors;
165 }
166
167
168
169 public void setActors(Collection<RestActor> actors) {
170 this.actors = actors;
171 }
172
173 public void addActor(RestActor actor) {
174 this.actors.add(actor);
175 }
176
177 public Collection<RestTVSeason> getSeasons() {
178 return seasons;
179 }
180 public void setSeasons(Collection<RestTVSeason> seasons) {
181 this.seasons = seasons;
182 }
183 public void addSeason(RestTVSeason season) {
184 this.seasons.add(season);
185 }
186
187 }