Add option to order and delete elements from queue by dragging and swiping

This commit is contained in:
CappielloAntonio 2021-04-16 18:00:19 +02:00
parent 49c3d60ed1
commit a2770daaa8
9 changed files with 70 additions and 111 deletions

View file

@ -12,12 +12,12 @@ public class Queue {
@ColumnInfo(name = "id")
private String songID;
@ColumnInfo(name = "last_played")
private long lastPlayed;
@ColumnInfo(name = "track_order")
private int trackOrder;
public Queue(String songID, long lastPlayed) {
public Queue(String songID, int trackOrder) {
this.songID = songID;
this.lastPlayed = lastPlayed;
this.trackOrder = trackOrder;
}
public String getSongID() {
@ -28,11 +28,11 @@ public class Queue {
this.songID = songID;
}
public long getLastPlayed() {
return lastPlayed;
public int getTrackOrder() {
return trackOrder;
}
public void setLastPlayed(long lastPlayed) {
this.lastPlayed = lastPlayed;
public void setTrackOrder(int trackOrder) {
this.trackOrder = trackOrder;
}
}