Java Code Examples for org.fourthline.cling.support.model.container.PlaylistContainer#setDescription()
The following examples show how to use
org.fourthline.cling.support.model.container.PlaylistContainer#setDescription() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FolderBasedContentDirectory.java From airsonic-advanced with GNU General Public License v3.0 | 5 votes |
private Container createPlaylistContainer(Playlist playlist) { PlaylistContainer container = new PlaylistContainer(); container.setId(CONTAINER_ID_PLAYLIST_PREFIX + playlist.getId()); container.setParentID(CONTAINER_ID_PLAYLIST_ROOT); container.setTitle(playlist.getName()); container.setDescription(playlist.getComment()); container.setChildCount(playlistService.getFilesInPlaylist(playlist.getId()).size()); return container; }
Example 2
Source File: PlaylistUpnpProcessor.java From airsonic-advanced with GNU General Public License v3.0 | 5 votes |
public Container createContainer(Playlist item) { PlaylistContainer container = new PlaylistContainer(); container.setId(getRootId() + DispatchingContentDirectory.SEPARATOR + item.getId()); container.setParentID(getRootId()); container.setTitle(item.getName()); container.setDescription(item.getComment()); container.setChildCount(getPlaylistService().getFilesInPlaylist(item.getId()).size()); return container; }
Example 3
Source File: FolderBasedContentDirectory.java From airsonic with GNU General Public License v3.0 | 5 votes |
private Container createPlaylistContainer(Playlist playlist) { PlaylistContainer container = new PlaylistContainer(); container.setId(CONTAINER_ID_PLAYLIST_PREFIX + playlist.getId()); container.setParentID(CONTAINER_ID_PLAYLIST_ROOT); container.setTitle(playlist.getName()); container.setDescription(playlist.getComment()); container.setChildCount(playlistService.getFilesInPlaylist(playlist.getId()).size()); return container; }
Example 4
Source File: PlaylistUpnpProcessor.java From airsonic with GNU General Public License v3.0 | 5 votes |
public Container createContainer(Playlist item) { PlaylistContainer container = new PlaylistContainer(); container.setId(getRootId() + DispatchingContentDirectory.SEPARATOR + item.getId()); container.setParentID(getRootId()); container.setTitle(item.getName()); container.setDescription(item.getComment()); container.setChildCount(getPlaylistService().getFilesInPlaylist(item.getId()).size()); return container; }
Example 5
Source File: FolderBasedContentDirectory.java From subsonic with GNU General Public License v3.0 | 5 votes |
private Container createPlaylistContainer(Playlist playlist) { PlaylistContainer container = new PlaylistContainer(); container.setId(CONTAINER_ID_PLAYLIST_PREFIX + playlist.getId()); container.setParentID(CONTAINER_ID_PLAYLIST_ROOT); container.setTitle(playlist.getName()); container.setDescription(playlist.getComment()); container.setChildCount(playlistService.getFilesInPlaylist(playlist.getId()).size()); return container; }