|
SageTV Platform V7.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsage.api.AiringAPI
public class AiringAPI
Airing is the 'meta' object used to access content.
An Airing can represent a specific time and Channel that a television Show is broadcast on. Uniquely identified by its time-Channel overlap because only one thing can be broadcast on a Channel at any given time. Airing's also represent the metadata that identify individual files.
SageTV will automatically convert the following types to Airing if used for a parameter that requires the Airing type:
MediaFile - the Airing that represents the content is used
java.io.File - the corresponding MediaFile (if it exists) is resolved and then its Airing is used
| Method Summary | |
|---|---|
sage.Airing |
AddAiring(java.lang.String ShowExternalID,
int StationID,
long StartTime,
long Duration)
Adds a new Airing object to the database. |
sage.Airing |
AddAiringDetailed(java.lang.String ShowExternalID,
int StationID,
long StartTime,
long Duration,
int PartNumber,
int TotalParts,
java.lang.String ParentalRating,
boolean HDTV,
boolean Stereo,
boolean ClosedCaptioning,
boolean SAP,
boolean Subtitled,
java.lang.String PremierFinale)
Adds a new Airing object to the database. |
void |
CancelRecord(sage.Airing Airing)
Cancels a recording that was previously set with a call to Record() or SetRecordingTimes() |
void |
ClearDontLike(sage.Airing Airing)
Called to cancel the indication that the content in this Airing is "Not Liked" by the user |
void |
ClearWatched(sage.Airing Airing)
Clears the watched information for this Airing completely. |
java.lang.String |
GetAiringChannelName(sage.Airing Airing)
Gets the name of the Channel that this Airing is on |
java.lang.String |
GetAiringChannelNumber(sage.Airing Airing)
Gets the channel number that this Airing is on |
long |
GetAiringDuration(sage.Airing Airing)
Gets the duration of this Airing in milliseconds |
long |
GetAiringEndTime(sage.Airing Airing)
Gets the end time of this Airing. |
sage.Airing |
GetAiringForID(int AiringID)
Returns the Airing object that corresponds to the passed in ID. |
int |
GetAiringID(sage.Airing Airing)
Returns the unique ID used to identify this Airing. |
sage.Airing |
GetAiringOnAfter(sage.Airing Airing)
Returns the Airing on the same Channel that is on immediately after the passed in Airing |
sage.Airing |
GetAiringOnBefore(sage.Airing Airing)
Returns the Airing on the same Channel that is on immediately before the passed in Airing |
java.lang.String[] |
GetAiringRatings(sage.Airing Airing)
Gets the list of the field values which correspond to parental ratings control for this Airing |
long |
GetAiringStartTime(sage.Airing Airing)
Gets the start time of this Airing. |
java.lang.String |
GetAiringTitle(sage.Airing Airing)
Gets the title of this Airing. |
sage.Channel |
GetChannel(sage.Airing Airing)
Gets the Channel that this Airing is on |
java.lang.String |
GetExtraAiringDetails(sage.Airing Airing)
Gets miscellaneous information about this Airing. |
long |
GetLatestWatchedTime(sage.Airing Airing)
Gets the time that viewing should resume from for this Airing if it is selected to view |
java.lang.String |
GetManualRecordProperty(sage.Airing Airing,
java.lang.String PropertyName)
Returns a property value for a specified ManualRecord. |
sage.MediaFile |
GetMediaFileForAiring(sage.Airing Airing)
Gets the MediaFile object which corresponds to this Airing object |
java.lang.String |
GetParentalRating(sage.Airing Airing)
Gets the parental rating information associated with this Airing. |
long |
GetRealWatchedEndTime(sage.Airing Airing)
Gets the time the user finished watching this Airing, in real time. |
long |
GetRealWatchedStartTime(sage.Airing Airing)
Gets the time the user started watching this Airing, in real time. |
java.lang.String |
GetRecordingName(sage.Airing Airing)
Gets the name for this recording that was set via SetRecordingName(Airing, String) |
java.lang.String |
GetRecordingQuality(sage.Airing Airing)
Returns the recording quality that this Airing has been specifically set to record at. |
long |
GetScheduleDuration(sage.Airing Airing)
Get the duration for an airing accounting for any adjustments made due to Manual Recording stop/start time adjustments or adjustments due to favorite padding. |
long |
GetScheduleEndTime(sage.Airing Airing)
Get the end time for an airing accounting for any adjustments made due to Manual Recording stop/start time adjustments or adjustments due to favorite padding. |
java.lang.String |
GetScheduleRecordingRecurrence(sage.Airing Airing)
If this Airing is a time-based recording this will get a description of the recurrence frequency for its recording recurrence |
long |
GetScheduleStartTime(sage.Airing Airing)
Get the start time for an airing accounting for any adjustments made due to Manual Recording stop/start time adjustments or adjustments due to favorite padding. |
sage.Show |
GetShow(sage.Airing Airing)
Gets the Show object for this Airing which describes it in further detail (Show contains the title, actors, category, description, etc.) |
int |
GetTrackNumber(sage.Airing Airing)
Returns the track number for the Airing if it's from a Music Album. |
long |
GetWatchedDuration(sage.Airing Airing)
Gets the duration of time of this Airing that has been watched already. |
long |
GetWatchedEndTime(sage.Airing Airing)
Gets the time the user finished watching this Airing. |
long |
GetWatchedStartTime(sage.Airing Airing)
Gets the time the user started watching this Airing. |
boolean |
IsAiringHDTV(sage.Airing Airing)
Returns true if this Airing is in HDTV |
boolean |
IsAiringObject(sage.Airing Airing)
Returns true if the argument is an Airing object. |
boolean |
IsDontLike(sage.Airing Airing)
Returns true if this Airing has been set as content the user "Doesn't Like" |
boolean |
IsFavorite(sage.Airing Airing)
Returns true if this Airing matches one of the Favorites the user has setup |
boolean |
IsManualRecord(sage.Airing Airing)
Returns true if this Airing has been selected by the user to manually record Record() |
boolean |
IsNotManualOrFavorite(sage.Airing Airing)
Returns true if this Airing has NOT been selected by the user to manually record Record() and
is also NOT a Favorite (i.e. |
boolean |
IsWatched(sage.Airing Airing)
Returns true if this Airing's content has been completely watched already. |
boolean |
IsWatchedCompletely(sage.Airing Airing)
Returns true if this Airing has been completely watched already. |
java.lang.String |
PrintAiringLong(sage.Airing Airing)
Returns a lengthy string which is suitable for displaying information about this Airing. |
java.lang.String |
PrintAiringMedium(sage.Airing Airing)
Returns a string which is suitable for displaying information about this Airing. |
java.lang.String |
PrintAiringShort(sage.Airing Airing)
Returns a brief string which is suitable for displaying information about this Airing. |
java.lang.Object |
Record(sage.Airing Airing)
Specifies that this Airing should be recorded. |
void |
SetDontLike(sage.Airing Airing)
Called to indicate that the content in this Airing is "Not Liked" by the user |
void |
SetManualRecordProperty(sage.Airing Airing,
java.lang.String PropertyName,
java.lang.String PropertyValue)
Sets a property for a specified ManualRecord. |
void |
SetRecordingName(sage.Airing Airing,
java.lang.String Name)
Sets the name for this recording. |
void |
SetRecordingQuality(sage.Airing Airing,
java.lang.String Quality)
Sets the recording quality for this Airing if it has been selected by the user as a manual record |
java.lang.Object |
SetRecordingTimes(sage.Airing Airing,
long StartTime,
long StopTime)
Modifies or creates a time-based recording that is associated with this Airing. |
void |
SetWatched(sage.Airing Airing)
Sets the watched flag for this Airing to true as if the user watched the show from start to finish |
void |
SetWatchedTimes(sage.Airing Airing,
long WatchedEndTime,
long RealStartTime)
Updates the Watched information for this airing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void SetRecordingName(sage.Airing Airing,
java.lang.String Name)
Airing - the ManualRecord to set the name forName - the name to setpublic java.lang.String GetRecordingName(sage.Airing Airing)
SetRecordingName(Airing, String)
Airing - the ManualRecord to get the name for
public sage.Channel GetChannel(sage.Airing Airing)
Airing - the Airing object
public java.lang.String GetAiringChannelName(sage.Airing Airing)
Airing - the Airing object
public java.lang.String GetAiringChannelNumber(sage.Airing Airing)
Airing - the Airing object
public long GetAiringDuration(sage.Airing Airing)
Airing - the Airing object
public long GetAiringStartTime(sage.Airing Airing)
Airing - the Airing object
public long GetAiringEndTime(sage.Airing Airing)
Airing - the Airing object
public sage.Show GetShow(sage.Airing Airing)
Airing - the Airing object
public java.lang.String[] GetAiringRatings(sage.Airing Airing)
Airing - the Airing object
public long GetScheduleStartTime(sage.Airing Airing)
Airing - the Airing object
public long GetScheduleEndTime(sage.Airing Airing)
Airing - the Airing object
public long GetScheduleDuration(sage.Airing Airing)
Airing - the Airing object
public java.lang.String GetScheduleRecordingRecurrence(sage.Airing Airing)
Airing - the Airing object
public java.lang.String PrintAiringLong(sage.Airing Airing)
Airing - the Airing object
public java.lang.String PrintAiringMedium(sage.Airing Airing)
Airing - the Airing object
public java.lang.String PrintAiringShort(sage.Airing Airing)
Airing - the Airing object
public java.lang.String GetAiringTitle(sage.Airing Airing)
Airing - the Airing object
public boolean IsWatched(sage.Airing Airing)
Airing - the Airing object
public long GetWatchedDuration(sage.Airing Airing)
Airing - the Airing object
public long GetWatchedStartTime(sage.Airing Airing)
Airing - the Airing object
public long GetWatchedEndTime(sage.Airing Airing)
Airing - the Airing object
public long GetRealWatchedStartTime(sage.Airing Airing)
Airing - the Airing object
public long GetRealWatchedEndTime(sage.Airing Airing)
Airing - the Airing object
public void SetWatched(sage.Airing Airing)
Airing - the Airing object
public void SetWatchedTimes(sage.Airing Airing,
long WatchedEndTime,
long RealStartTime)
Airing - the Airing object, there must be a corresponding MediaFile for this AiringWatchedEndTime - an airing-relative time which indicates the time the user has watched the show up untilRealStartTime - the time (in real time) the user started watching this program atpublic void ClearWatched(sage.Airing Airing)
Airing - the Airing objectpublic long GetLatestWatchedTime(sage.Airing Airing)
Airing - the Airing objectpublic boolean IsWatchedCompletely(sage.Airing Airing)
IsWatched()
Airing - the Airing object
public boolean IsDontLike(sage.Airing Airing)
Airing - the Airing object
public void SetDontLike(sage.Airing Airing)
Airing - the Airing objectpublic void ClearDontLike(sage.Airing Airing)
Airing - the Airing objectpublic boolean IsManualRecord(sage.Airing Airing)
Record()
Airing - the Airing object
Record()public boolean IsNotManualOrFavorite(sage.Airing Airing)
Record() and
is also NOT a Favorite (i.e. IsFavorite and IsManualRecord both return false)
Airing - the Airing object
public boolean IsAiringHDTV(sage.Airing Airing)
Airing - the Airing object
public int GetTrackNumber(sage.Airing Airing)
Airing - the Airing object
public java.lang.String GetRecordingQuality(sage.Airing Airing)
Record()
Airing - the Airing object
public void SetRecordingQuality(sage.Airing Airing,
java.lang.String Quality)
Airing - the Airing objectQuality - the name of the recording qualitypublic boolean IsFavorite(sage.Airing Airing)
Airing - the Airing object
public java.lang.Object SetRecordingTimes(sage.Airing Airing,
long StartTime,
long StopTime)
Airing - the Airing objectStartTime - the time the recording of this Airing should startStopTime - the time the recording of this Airing should stop
public java.lang.Object Record(sage.Airing Airing)
Airing - the Airing object
public void CancelRecord(sage.Airing Airing)
Record() or SetRecordingTimes()
Airing - the Airing objectpublic boolean IsAiringObject(sage.Airing Airing)
Airing - the object to test
public java.lang.String GetParentalRating(sage.Airing Airing)
Airing - the Airing object
public java.lang.String GetExtraAiringDetails(sage.Airing Airing)
Airing - the Airing object
public int GetAiringID(sage.Airing Airing)
GetAiringForID()
Airing - the Airing object
public sage.Airing GetAiringForID(int AiringID)
GetAiringID()
AiringID - the Airing id
public sage.Airing AddAiring(java.lang.String ShowExternalID,
int StationID,
long StartTime,
long Duration)
ShowExternalID - a GUID which uniquely identifies the Show that correlates with this Airing, this Show should already have been addedStationID - the GUID which uniquely identifies a "Station" (sort of like a Channel)StartTime - the time at which the new Airing startsDuration - the duration of the new Airing in milliseconds
public sage.Airing AddAiringDetailed(java.lang.String ShowExternalID,
int StationID,
long StartTime,
long Duration,
int PartNumber,
int TotalParts,
java.lang.String ParentalRating,
boolean HDTV,
boolean Stereo,
boolean ClosedCaptioning,
boolean SAP,
boolean Subtitled,
java.lang.String PremierFinale)
ShowExternalID - a GUID which uniquely identifies the Show that correlates with this Airing, this Show should already have been addedStationID - the GUID which uniquely identifies a "Station" (sort of like a Channel)StartTime - the time at which the new Airing startsDuration - the duration of the new Airing in millisecondsPartNumber - for music files, the track number; for TV shows if it is a multipart show this is the part number, otherwise this should be 0TotalParts - for multipart TV shows, this is the total number of parts otherwise this should be zero; for music files it should be zeroParentalRating - the parental rating for the show, should be a localized value from "TVY", "TVY7", "TVG", "TVPG", "TV14", "TVM" or the empty stringHDTV - true if it's an HDTV airing, false otherwiseStereo - true if it's a stereo recording, false otherwiseClosedCaptioning - true if the airing has closed captioning, false otherwiseSAP - true if the Airing has a Secondary Audio Program (SAP), false otherwiseSubtitled - true if the Airing is subtitled, false otherwisePremierFinale - should be the empty string or a localized value from the list "Premier", "Channel Premier", "Season Premier", "Series Premier", "Season Finale", "Series Finale"
public sage.MediaFile GetMediaFileForAiring(sage.Airing Airing)
Airing - the Airing object
public sage.Airing GetAiringOnAfter(sage.Airing Airing)
Airing - the Airing object
public sage.Airing GetAiringOnBefore(sage.Airing Airing)
Airing - the Airing object
public java.lang.String GetManualRecordProperty(sage.Airing Airing,
java.lang.String PropertyName)
Airing - the Airing object which is a ManualRecordPropertyName - the name of the property
public void SetManualRecordProperty(sage.Airing Airing,
java.lang.String PropertyName,
java.lang.String PropertyValue)
Airing - the Airing object which is a ManualRecordPropertyName - the name of the propertyPropertyValue - the value of the property
|
SageTV Platform V7.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||