Playlists [beta]
This commit is contained in:
parent
f7bc62a2df
commit
de15a34365
33 changed files with 896 additions and 56 deletions
|
|
@ -0,0 +1,16 @@
|
|||
package com.kabouzeid.gramophone.model;
|
||||
|
||||
public class Playlist {
|
||||
public int id;
|
||||
public String playlistName;
|
||||
|
||||
public Playlist(final int id, final String playlistName) {
|
||||
this.id = id;
|
||||
this.playlistName = playlistName;
|
||||
}
|
||||
|
||||
public Playlist() {
|
||||
this.id = -1;
|
||||
this.playlistName = "";
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.kabouzeid.gramophone.model;
|
||||
|
||||
public class PlaylistSong extends Song{
|
||||
public int playlistId;
|
||||
public int idInPlayList;
|
||||
|
||||
public PlaylistSong(final int id, final int albumId, final int artistId, final String title, final String artistName,
|
||||
final String albumName, final long duration, final int trackNumber, final int playlistId, final int idInPlayList) {
|
||||
super(id, albumId, artistId, title, artistName, albumName, duration, trackNumber);
|
||||
this.playlistId = playlistId;
|
||||
this.idInPlayList = idInPlayList;
|
||||
}
|
||||
|
||||
public PlaylistSong() {
|
||||
super();
|
||||
playlistId = -1;
|
||||
id = -1;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue