Order pinned playlists in playlist catalogue

This commit is contained in:
CappielloAntonio 2021-11-26 11:22:25 +01:00
parent e29b96d905
commit e2f1212e58
4 changed files with 59 additions and 6 deletions

View file

@ -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;