public class Airing 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 |
Airing.ContentType
Represents the content type of the airing
|
static class |
Airing.DolbyStatus
Represents the possible values of the Dolby value of an airing
|
static class |
Airing.FinaleStatus
Represents the finale status of an airing
|
static class |
Airing.LiveStatus
Represents the live status of an airing
|
static class |
Airing.PremiereStatus
Represents the premiere status of an airing
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getBroadcastLanguage()
Get the language this airing broadcasts in.
|
String |
getContentSource() |
Airing.ContentType |
getContentType() |
Airing.DolbyStatus |
getDolbyStatus() |
int |
getDuration() |
Airing.FinaleStatus |
getFinaleStatus() |
Date |
getGmtStart() |
String |
getId() |
Airing.LiveStatus |
getLiveStatus() |
int |
getPartNum() |
Airing.PremiereStatus |
getPremiereStatus() |
Program |
getProgram() |
String |
getSapLanguage() |
Station |
getStation() |
String |
getSubtitleLanguage() |
int |
getTotalParts() |
ContentRating[] |
getTvRatings() |
int |
hashCode() |
boolean |
is3d() |
boolean |
isCableInTheClassroom() |
boolean |
isClosedCaptioned() |
boolean |
isDescriptiveVideo() |
boolean |
isEducational() |
boolean |
isEnhanced() |
boolean |
isHdtv() |
boolean |
isJoinedInProgress() |
boolean |
isLeftInProgress() |
boolean |
isLetterboxed() |
boolean |
isNewAiring() |
boolean |
isSap() |
boolean |
isStereo() |
boolean |
isSubjectToBlackout() |
boolean |
isSubtitled() |
boolean |
isTimeApproximate() |
void |
setBroadcastLanguage(String lang)
Set this airing's broadcasting language.
|
void |
setCableInTheClassroom(boolean cableInTheClassroom) |
void |
setClosedCaptioned(boolean closedCaptioned) |
void |
setContentSource(String contentSource) |
void |
setContentType(Airing.ContentType contentType) |
void |
setDescriptiveVideo(boolean descriptiveVideo) |
void |
setDolbyStatus(Airing.DolbyStatus dolbyStatus) |
void |
setDuration(int duration) |
void |
setEducational(boolean educational) |
void |
setEnhanced(boolean enhanced) |
void |
setFinaleStatus(Airing.FinaleStatus finaleStatus) |
void |
setGmtStart(Date gmtStart) |
void |
setHdtv(boolean hdtv) |
void |
setId(String id)
Modify this Airing's unique id; this is the id of the Program that this Airing represents
|
void |
setIs3d(boolean is3d) |
void |
setJoinedInProgress(boolean joinedInProgress) |
void |
setLeftInProgress(boolean leftInProgress) |
void |
setLetterboxed(boolean letterboxed) |
void |
setLiveStatus(Airing.LiveStatus liveStatus) |
void |
setNewAiring(boolean newAiring) |
void |
setPartNum(int partNum) |
void |
setPremiereStatus(Airing.PremiereStatus premiereStatus) |
void |
setProgram(Program program)
Change the Program this Airing is associated with; this airing's id is updated to that of the Program argument
|
void |
setSap(boolean sap) |
void |
setSapLanguage(String sapLanguage) |
void |
setStation(Station station)
Change the Station this Airing is associated with (i.e.
|
void |
setStereo(boolean stereo) |
void |
setSubjectToBlackout(boolean subjectToBlackout) |
void |
setSubtitled(boolean subtitled) |
void |
setSubtitleLanguage(String subtitleLanguage) |
void |
setTimeApproximate(boolean timeApproximate) |
void |
setTotalParts(int totalParts) |
void |
setTvRatings(ContentRating[] tvRatings) |
String |
toString() |
public String getBroadcastLanguage()
This field is a hint and not 100% accurate; if null assume English, but not guaranteed.
public void setBroadcastLanguage(String lang)
lang
- The language this airing is broadcasting in or null if English or unknownpublic boolean isSubjectToBlackout()
public boolean isEducational()
public boolean isJoinedInProgress()
public boolean isLeftInProgress()
public String getContentSource()
public int getPartNum()
public boolean isClosedCaptioned()
public boolean isStereo()
public boolean isNewAiring()
public int getDuration()
public int getTotalParts()
public Airing.DolbyStatus getDolbyStatus()
public Airing.LiveStatus getLiveStatus()
public boolean isHdtv()
public Airing.PremiereStatus getPremiereStatus()
public Airing.FinaleStatus getFinaleStatus()
public ContentRating[] getTvRatings()
public String getId()
public Airing.ContentType getContentType()
public boolean isLetterboxed()
public Date getGmtStart()
public boolean isDescriptiveVideo()
public boolean is3d()
public boolean isCableInTheClassroom()
public boolean isEnhanced()
public boolean isSap()
public String getSapLanguage()
public boolean isSubtitled()
public String getSubtitleLanguage()
public boolean isTimeApproximate()
public void setId(String id) throws IllegalArgumentException
id
- The unique id for this AiringIllegalArgumentException
- Thrown if id is null or if the id does not match the id of the attached Program object in this Airingpublic void setSubjectToBlackout(boolean subjectToBlackout)
subjectToBlackout
- the subjectToBlackout to setpublic void setEducational(boolean educational)
educational
- the educational to setpublic void setJoinedInProgress(boolean joinedInProgress)
joinedInProgress
- the joinedInProgress to setpublic void setLeftInProgress(boolean leftInProgress)
leftInProgress
- the leftInProgress to setpublic void setContentSource(String contentSource)
contentSource
- the contentSource to setpublic void setPartNum(int partNum)
partNum
- the partNum to setpublic void setClosedCaptioned(boolean closedCaptioned)
closedCaptioned
- the closedCaptioned to setpublic void setStereo(boolean stereo)
stereo
- the stereo to setpublic void setNewAiring(boolean newAiring)
newAiring
- the newAiring to setpublic void setDuration(int duration)
duration
- the duration to setpublic void setTotalParts(int totalParts)
totalParts
- the totalParts to setpublic void setDolbyStatus(Airing.DolbyStatus dolbyStatus)
dolbyStatus
- the dolbyStatus to setpublic void setLiveStatus(Airing.LiveStatus liveStatus)
liveStatus
- the liveStatus to setpublic void setHdtv(boolean hdtv)
hdtv
- the hdtv to setpublic void setPremiereStatus(Airing.PremiereStatus premiereStatus)
premiereStatus
- the premiereStatus to setpublic void setFinaleStatus(Airing.FinaleStatus finaleStatus)
finaleStatus
- the finaleStatus to setpublic void setTvRatings(ContentRating[] tvRatings)
tvRating
- the tvRating to setpublic void setContentType(Airing.ContentType contentType)
contentType
- the contentType to setpublic void setLetterboxed(boolean letterboxed)
letterboxed
- the letterboxed to setpublic void setGmtStart(Date gmtStart)
gmtStart
- the gmtStart to setpublic void setDescriptiveVideo(boolean descriptiveVideo)
descriptiveVideo
- the descriptiveVideo to setpublic void setIs3d(boolean is3d)
is3d
- the is3d to setpublic void setCableInTheClassroom(boolean cableInTheClassroom)
cableInTheClassroom
- the cableInTheClassroom to setpublic void setEnhanced(boolean enhanced)
enhanced
- the enhanced to setpublic void setSap(boolean sap)
sap
- the sap to setpublic void setSapLanguage(String sapLanguage)
sapLanguage
- the sapLanguage to setpublic void setSubtitled(boolean subtitled)
subtitled
- the subtitled to setpublic void setSubtitleLanguage(String subtitleLanguage)
subtitleLanguage
- the subtitleLanguage to setpublic void setTimeApproximate(boolean timeApproximate)
timeApproximate
- the timeApproximate to setpublic Station getStation()
public void setStation(Station station) throws IllegalArgumentException
station
- The new Station to associate with this AiringIllegalArgumentException
- Thrown if the argument is nullpublic Program getProgram()
public void setProgram(Program program) throws IllegalArgumentException
program
- The new Program to associate with this AiringIllegalArgumentException
- Thrown if the Program argument is nullCopyright © 2012–2014 Battams, Derek. All rights reserved.