public class Show extends java.lang.Object implements IShow
Constructor and Description |
---|
Show()
The constructor
|
Show(java.lang.String showId)
The constructor used to create a instance of the class
|
Modifier and Type | Method and Description |
---|---|
void |
addGenre(java.lang.String genre)
Used to add a genre to the show
|
java.util.List<Certification> |
getCertifications()
Used to get a list of the films certifications
|
java.util.Map<java.lang.String,java.lang.String> |
getExtraInfo()
Used to get extra information to a show that their are no getters/setters for in the regular fields
|
java.util.List<java.lang.String> |
getGenres()
Used to get the genres that the show belongs too
|
java.net.URL |
getImageURL()
Used to get a URL which points too a image of the show
|
java.lang.String |
getLongSummary()
Used to get a long summary of the show
|
java.lang.String |
getName()
Used to get the name/title of the show
|
java.lang.String |
getPreferredGenre()
This is useful if the film belongs to more than one genres.
|
java.lang.String |
getShortSummary()
Used to get a short summary of the show
|
java.lang.String |
getShowId()
Used to get the id of the show, which was defined by
the source it was fetched from.
|
java.net.URL |
getShowURL()
Used to get a URL which points to a summary of the show
|
java.lang.String |
getSourceId()
Used to get the source id of the source that was used to retrieve the shows information.
|
java.lang.String |
getStudio()
Used to get the studio of the show
|
void |
setCertifications(java.util.List<Certification> certifications)
Used to set the films certifications
|
void |
setExtraInfo(java.util.Map<java.lang.String,java.lang.String> params)
Used to add extra information to a show that their are no getters/setters for in the regular fields
|
void |
setGenres(java.util.List<java.lang.String> genres)
Used to set the genres that the show belongs too
|
void |
setImageURL(java.net.URL imageURL)
Used to set a URL which points too a image of the show
|
void |
setLongSummary(java.lang.String longSummary)
Used to set the long summary of the show
|
void |
setName(java.lang.String name)
Used to set the name/title of the show
|
void |
setPreferredGenre(java.lang.String preferredGenre)
Used to set the genre that is preferred in the list of genres.
|
void |
setShortSummary(java.lang.String shortSummary)
Used to set the show summary of the show
|
void |
setShowId(java.lang.String showId)
Used to set the show id
|
void |
setShowURL(java.net.URL showURL)
Used too set the URL which points to a summary of the show
|
void |
setSourceId(java.lang.String sourceId)
Used to set the source id of the source that was used to retrieve the shows information.
|
void |
setStudio(java.lang.String studio)
Used to set the studio of the show
|
java.lang.String |
toString() |
public Show()
public Show(java.lang.String showId)
showId
- The id of the showpublic void setShowId(java.lang.String showId)
showId
- The show idpublic void setLongSummary(java.lang.String longSummary)
setLongSummary
in interface IShow
longSummary
- The long summary of the showpublic void setShortSummary(java.lang.String shortSummary)
setShortSummary
in interface IShow
shortSummary
- The short summary iof the showpublic void setGenres(java.util.List<java.lang.String> genres)
setGenres
in interface IVideoGenre
genres
- The genres that the show belongs toopublic void setName(java.lang.String name)
public void setShowURL(java.net.URL showURL)
setShowURL
in interface IShow
showURL
- The URL which points to a summary of the showpublic java.lang.String getLongSummary()
getLongSummary
in interface IShow
public java.lang.String getShortSummary()
getShortSummary
in interface IShow
public java.util.List<java.lang.String> getGenres()
getGenres
in interface IVideoGenre
public java.lang.String getName()
public java.lang.String getShowId()
public java.net.URL getImageURL()
getImageURL
in interface IShow
public void setImageURL(java.net.URL imageURL)
setImageURL
in interface IShow
imageURL
- A URL which points too a image of the showpublic java.net.URL getShowURL()
getShowURL
in interface IShow
public java.lang.String getSourceId()
getSourceId
in interface IShow
public void setSourceId(java.lang.String sourceId)
setSourceId
in interface IShow
sourceId
- The source idpublic void addGenre(java.lang.String genre)
addGenre
in interface IVideoGenre
genre
- The genrepublic java.lang.String getPreferredGenre()
getPreferredGenre
in interface IVideoGenre
public void setPreferredGenre(java.lang.String preferredGenre)
setPreferredGenre
in interface IVideoGenre
preferredGenre
- The preferred genrepublic java.util.Map<java.lang.String,java.lang.String> getExtraInfo()
getExtraInfo
in interface IVideoExtra
public void setExtraInfo(java.util.Map<java.lang.String,java.lang.String> params)
setExtraInfo
in interface IVideoExtra
params
- The extra information in a map of key value pairspublic java.lang.String getStudio()
public void setStudio(java.lang.String studio)
public java.util.List<Certification> getCertifications()
getCertifications
in interface IVideoCertification
public void setCertifications(java.util.List<Certification> certifications)
setCertifications
in interface IVideoCertification
certifications
- The films certificationspublic java.lang.String toString()
toString
in class java.lang.Object