public class Program extends Object
Only EpgClient can instantiate objects of this class
When there's a discrepancy between the descriptions of data found in this source code and that found here then the latter web source will always take precedence!
Modifier and Type | Class and Description |
---|---|
static class |
Program.ColorCode
The color code of a program
|
static class |
Program.Credit
Represents a credit in a program
|
static class |
Program.FloatQualityRating |
static class |
Program.QualityRating
Represents a movie quality rating (i.e.
|
static class |
Program.Role
Represents the role of cast & crew members of a program
|
static class |
Program.SourceType
Represents the source of a program
|
static class |
Program.StringQualityRating |
static class |
Program.Team |
Modifier and Type | Field and Description |
---|---|
static String |
EMPTY_PROGRAM
An empty Program object as a JSON string
|
static Pattern |
MOVIE_REGEX |
static String |
ORIG_FMT
The expected format of the original airing field
|
public static final String EMPTY_PROGRAM
public static final String ORIG_FMT
public static final Pattern MOVIE_REGEX
public List<Map<String,Object>> getMetadata()
public String[] getGenres()
public String getId()
public boolean isMadeForTv()
public String getDescription()
public String getEpisodeTitle()
public String getTitle()
public Date getOriginalAirDate()
public String getDescriptionLanguage()
public Program.SourceType getSourceType()
public String getSyndicatedEpisodeNumber()
public Program.ColorCode getColorCode()
public String[] getAdvisories()
public String getAlternateEpisodeNumber()
public String getAlternateTitle()
public Program.Credit[] getCredits()
public String getAlternateDescription()
public String getAlternateDescriptionShort()
public String[] getShortDescriptions()
public Date getGameStart()
public String getHoliday()
public String getMd5()
public ContentRating[] getRatings()
public String getCountryOfOrigin()
public String getStudio()
public int getRunTime()
public String getEpisodeNumber()
public String[] getShortTitles()
public int getYear()
public void setId(String id)
id
- the id to setpublic void setMadeForTv(boolean madeForTv)
madeForTv
- the madeForTv to setpublic void setDescription(String description)
description
- the description to setpublic void setEpisodeTitle(String episodeTitle)
episodeTitle
- the episodeTitle to setpublic void setTitle(String title)
title
- the title to setpublic void setOriginalAirDate(Date originalAirDate)
originalAirDate
- the originalAirDate to setpublic void setDescriptionLanguage(String descriptionLanguage)
descriptionLanguage
- the descriptionLanguage to setpublic void setSourceType(Program.SourceType sourceType)
sourceType
- the sourceType to setpublic void setSyndicatedEpisodeNumber(String syndicatedEpisodeNumber)
syndicatedEpisodeNumber
- the syndicatedEpisodeNumber to setpublic void setColorCode(Program.ColorCode colorCode)
colorCode
- the colorCode to setpublic void setAdvisories(String[] advisories)
advisories
- the advisories to setpublic void setAlternateEpisodeNumber(String alternateEpisodeNumber)
alternateEpisodeNumber
- the alternateEpisodeNumber to setpublic void setAlternateTitle(String alternateTitle)
alternateTitle
- the alternateTitle to setpublic void setCredits(Program.Credit[] credits)
credits
- the credits to setpublic void setAlternateDescription(String alternateDescription)
alternateDescription
- the alternateDescription to setpublic void setAlternateDescriptionShort(String alternateDescriptionShort)
alternateDescriptionShort
- the alternateDescriptionShort to setpublic void setShortDescriptions(String[] shortDescriptions)
shortDescriptions
- the shortDescriptions to setpublic void setGameStart(Date gameStart)
gameStart
- the gameStart to setpublic void setHoliday(String holiday)
holiday
- the holiday to setpublic void setMd5(String md5)
md5
- the md5 to setpublic void setRatings(ContentRating[] ratings)
mpaaRating
- the mpaaRating to setpublic void setCountryOfOrigin(String countryOfOrigin)
countryOfOrigin
- the countryOfOrigin to setpublic void setStudio(String studio)
studio
- the studio to setpublic void setRunTime(int runTime)
runTime
- the runTime to setpublic void setEpisodeNumber(String episodeNumber)
episodeNumber
- the episodeNumber to setpublic void setShortTitles(String[] shortTitles)
shortTitles
- the shortTitles to setpublic void setYear(int year)
year
- the year to setpublic void setGenres(String[] genres)
genres
- the genres to setpublic void setMetadata(List<Map<String,Object>> metadata)
metadata
- the metadata to setpublic String getSeriesDescription()
public void setSeriesDescription(String seriesDescription)
seriesDescription
- the seriesDescription to setpublic String getVenue()
public void setVenue(String venue)
venue
- the venue to setpublic Program.Team[] getTeams()
public void setTeams(Program.Team[] teams)
teams
- the teams to setpublic URL[] getImages()
The URLs returned by this method must be inspected by the caller and acted upon differently
based on whether or not the URL starts with EpgClient.getBaseUrl()
.
If the URL does start with the value of getBaseUrl()
then in order to access
the image, you must route the request thru an instance of NetworkEpgClient
in order to ensure the request is properly authenticated. URLs that don't point to the JSON
service do not need to be authenticated and can just be accessed directly with your favourite
URL reader (including URL.openStream()
).
public void setImages(URL[] images)
images
- the images to setpublic Program.QualityRating[] getQualityRatings()
public void setQualityRatings(Program.QualityRating[] qualityRatings)
qualityRatings
- the qualityRatings to setpublic Program getSeriesInfo()
public void setSeriesInfo(Program seriesInfo)
seriesInfo
- the seriesInfo to setCopyright © 2012–2014 Battams, Derek. All rights reserved.