mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 02:13:33 +00:00
Playlists pinned by saving the server information
This commit is contained in:
parent
a1885e96cd
commit
08c1b03d84
8 changed files with 29 additions and 10 deletions
|
|
@ -34,6 +34,9 @@ public class Playlist implements Parcelable {
|
|||
@ColumnInfo(name = "playlist_duration")
|
||||
private long duration;
|
||||
|
||||
@ColumnInfo(name = "server")
|
||||
private String server;
|
||||
|
||||
public Playlist(com.cappielloantonio.play.subsonic.models.Playlist playlist) {
|
||||
this.id = playlist.getId();
|
||||
this.name = playlist.getName();
|
||||
|
|
@ -49,12 +52,13 @@ public class Playlist implements Parcelable {
|
|||
this.name = name;
|
||||
}
|
||||
|
||||
public Playlist(@NonNull String id, String name, String primary, int songCount, long duration) {
|
||||
public Playlist(@NonNull String id, String name, String primary, int songCount, long duration, String server) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.primary = primary;
|
||||
this.songCount = songCount;
|
||||
this.duration = duration;
|
||||
this.server = server;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
|
@ -82,6 +86,14 @@ public class Playlist implements Parcelable {
|
|||
return duration;
|
||||
}
|
||||
|
||||
public String getServer() {
|
||||
return server;
|
||||
}
|
||||
|
||||
public void setServer(String server) {
|
||||
this.server = server;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue