2020-12-05 21:31:12 +01:00
|
|
|
package com.cappielloantonio.play.model;
|
|
|
|
|
|
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
|
import androidx.room.ColumnInfo;
|
|
|
|
|
import androidx.room.Entity;
|
|
|
|
|
import androidx.room.PrimaryKey;
|
|
|
|
|
|
|
|
|
|
@Entity(tableName = "queue")
|
|
|
|
|
public class Queue {
|
|
|
|
|
@NonNull
|
2020-12-08 11:12:44 +01:00
|
|
|
@PrimaryKey
|
2021-04-16 18:00:19 +02:00
|
|
|
@ColumnInfo(name = "track_order")
|
|
|
|
|
private int trackOrder;
|
2020-12-05 21:31:12 +01:00
|
|
|
|
2021-04-17 11:23:53 +02:00
|
|
|
@ColumnInfo(name = "id")
|
|
|
|
|
private String songID;
|
2020-12-05 21:31:12 +01:00
|
|
|
|
2021-04-17 11:23:53 +02:00
|
|
|
public Queue(int trackOrder, String songID) {
|
|
|
|
|
this.trackOrder = trackOrder;
|
2020-12-05 21:31:12 +01:00
|
|
|
this.songID = songID;
|
|
|
|
|
}
|
2020-12-08 11:12:44 +01:00
|
|
|
|
2021-04-16 18:00:19 +02:00
|
|
|
public int getTrackOrder() {
|
|
|
|
|
return trackOrder;
|
2020-12-08 11:12:44 +01:00
|
|
|
}
|
|
|
|
|
|
2021-04-16 18:00:19 +02:00
|
|
|
public void setTrackOrder(int trackOrder) {
|
|
|
|
|
this.trackOrder = trackOrder;
|
2020-12-08 11:12:44 +01:00
|
|
|
}
|
2021-04-17 11:23:53 +02:00
|
|
|
|
|
|
|
|
public String getSongID() {
|
|
|
|
|
return songID;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSongID(String songID) {
|
|
|
|
|
this.songID = songID;
|
|
|
|
|
}
|
2020-12-05 21:31:12 +01:00
|
|
|
}
|