mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 10:23:33 +00:00
Order pinned playlists in playlist catalogue
This commit is contained in:
parent
e29b96d905
commit
e2f1212e58
4 changed files with 59 additions and 6 deletions
|
|
@ -22,16 +22,16 @@ public class Playlist implements Parcelable {
|
|||
@ColumnInfo(name = "playlist_name")
|
||||
private String name;
|
||||
|
||||
@Ignore
|
||||
@ColumnInfo(name = "primary")
|
||||
private String primary;
|
||||
|
||||
@Ignore
|
||||
private String blurHash;
|
||||
|
||||
@Ignore
|
||||
@ColumnInfo(name = "song_count")
|
||||
private int songCount;
|
||||
|
||||
@Ignore
|
||||
@ColumnInfo(name = "playlist_duration")
|
||||
private long duration;
|
||||
|
||||
public Playlist(com.cappielloantonio.play.subsonic.models.Playlist playlist) {
|
||||
|
|
@ -43,11 +43,20 @@ public class Playlist implements Parcelable {
|
|||
this.duration = playlist.getDuration();
|
||||
}
|
||||
|
||||
public Playlist(@NonNull String id, String name) {
|
||||
@Ignore
|
||||
public Playlist(String id, String name) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Playlist(@NonNull String id, String name, String primary, int songCount, long duration) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.primary = primary;
|
||||
this.songCount = songCount;
|
||||
this.duration = duration;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public String getId() {
|
||||
return id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue