|
SageTV Platform V7.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsage.api.PlaylistAPI
public class PlaylistAPI
Calls for creating, editing, removing and querying playlists in the system
| Method Summary | |
|---|---|
sage.Playlist |
AddPlaylist(java.lang.String Name)
Creates a new Playlist object |
void |
AddToPlaylist(sage.Playlist Playlist,
java.lang.Object NewItem)
Adds the specified item to this Playlist. |
boolean |
DoesPlaylistHaveVideo(sage.Playlist Playlist)
Returns true if the specified Playlist contains any video files, false otherwise |
java.lang.String |
GetName(sage.Playlist Playlist)
Gets the name of the specified Playlist |
sage.Playlist |
GetNowPlayingList()
Returns the 'Now Playing' playlist. |
int |
GetNumberOfPlaylistItems(sage.Playlist Playlist)
Gets the number of items in the specified Playlist |
java.lang.Object |
GetPlaylistItemAt(sage.Playlist Playlist,
int Index)
Gets the item in this Playlist at the specified index |
java.lang.Object[] |
GetPlaylistItems(sage.Playlist Playlist)
Gets the list of items in the specified Playlist |
java.lang.String |
GetPlaylistItemTypeAt(sage.Playlist Playlist,
int Index)
Gets the type of item in the Playlist at the specified index |
java.lang.String |
GetPlaylistProperty(sage.Playlist Playlist,
java.lang.String PropertyName)
Returns a property value for a specified Playlist. |
sage.Playlist[] |
GetPlaylists()
Gets a list of all of the Playlists in the database |
void |
InsertIntoPlaylist(sage.Playlist Playlist,
int InsertIndex,
java.lang.Object NewItem)
Inserts a new item into the specified Playlist at the specified position. |
boolean |
IsPlaylistObject(java.lang.Object Playlist)
Returns true if the passed in argument is a Playlist object |
void |
MovePlaylistItemDown(sage.Playlist Playlist,
int Index)
Swaps the position of the item at the specified index in the Playlist with the item at the position (Index + 1) |
void |
MovePlaylistItemUp(sage.Playlist Playlist,
int Index)
Swaps the position of the item at the specified index in the Playlist with the item at the position (Index - 1) |
void |
RemovePlaylist(sage.Playlist Playlist)
Removes a specified Playlist from the databse completely. |
void |
RemovePlaylistItem(sage.Playlist Playlist,
java.lang.Object Item)
Removes the specified item from the Playlist. |
void |
RemovePlaylistItemAt(sage.Playlist Playlist,
int ItemIndex)
Removes the specified item at the specified index from the Playlist. |
void |
SetName(sage.Playlist Playlist,
java.lang.String Name)
Sets the name for this Playlist |
void |
SetPlaylistProperty(sage.Playlist Playlist,
java.lang.String PropertyName,
java.lang.String PropertyValue)
Sets a property for this Playlist. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void AddToPlaylist(sage.Playlist Playlist,
java.lang.Object NewItem)
Playlist - the Playlist object to add the new item toNewItem - the new item to add to the Playlist; must be an Airing, Album, MediaFile or Playlistpublic java.lang.String GetName(sage.Playlist Playlist)
Playlist - the Playlist object
public int GetNumberOfPlaylistItems(sage.Playlist Playlist)
Playlist - the Playlist object
public java.lang.Object GetPlaylistItemAt(sage.Playlist Playlist,
int Index)
Playlist - the Playlist objectIndex - the 0-based index into the playlist to get the item from
public java.lang.String GetPlaylistItemTypeAt(sage.Playlist Playlist,
int Index)
Playlist - the Playlist objectIndex - the 0-based index into the Playlist to get the item type for
public java.lang.Object[] GetPlaylistItems(sage.Playlist Playlist)
Playlist - the Playlist object
public void InsertIntoPlaylist(sage.Playlist Playlist,
int InsertIndex,
java.lang.Object NewItem)
Playlist - the Playlist object to add the new item toInsertIndex - the 0-based index that the new item should be inserted atNewItem - the new item to insert into the Playlist; must be an Airing, Album, MediaFile or Playlist
public void MovePlaylistItemUp(sage.Playlist Playlist,
int Index)
Playlist - the Playlist objectIndex - the position of the item to move up one in the playlist
public void MovePlaylistItemDown(sage.Playlist Playlist,
int Index)
Playlist - the Playlist objectIndex - the position of the item to move down one in the playlist
public void RemovePlaylistItem(sage.Playlist Playlist,
java.lang.Object Item)
Playlist - the Playlist objectItem - the item to remove from the Playlist, must be an Airing, MediaFile, Album or Playlist
public void RemovePlaylistItemAt(sage.Playlist Playlist,
int ItemIndex)
Playlist - the Playlist objectItemIndex - the index of the item to remove from the Playlist
public void SetName(sage.Playlist Playlist,
java.lang.String Name)
Playlist - the Playlist objecxtName - the name to set for this Plyalistpublic boolean IsPlaylistObject(java.lang.Object Playlist)
Playlist - the object to test to see if it is a Playlist object
public sage.Playlist[] GetPlaylists()
public void RemovePlaylist(sage.Playlist Playlist)
Playlist - the Playlist object to removepublic boolean DoesPlaylistHaveVideo(sage.Playlist Playlist)
Playlist - the Playlist object
public sage.Playlist AddPlaylist(java.lang.String Name)
Name - the name for the new Playlistpublic sage.Playlist GetNowPlayingList()
public java.lang.String GetPlaylistProperty(sage.Playlist Playlist,
java.lang.String PropertyName)
Playlist - the Playlist objectPropertyName - the name of the property
public void SetPlaylistProperty(sage.Playlist Playlist,
java.lang.String PropertyName,
java.lang.String PropertyValue)
Playlist - the Playlist objectPropertyName - 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 | ||||||||