tempus/app/src/main/java/com/cappielloantonio/play/model/Queue.java

39 lines
809 B
Java
Raw Normal View History

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
2020-12-05 21:31:12 +01:00
@ColumnInfo(name = "id")
private String songID;
2020-12-08 11:12:44 +01:00
@ColumnInfo(name = "last_played")
private long lastPlayed;
2020-12-05 21:31:12 +01:00
2020-12-08 11:12:44 +01:00
public Queue(String songID, long lastPlayed) {
2020-12-05 21:31:12 +01:00
this.songID = songID;
2020-12-08 11:12:44 +01:00
this.lastPlayed = lastPlayed;
2020-12-05 21:31:12 +01:00
}
public String getSongID() {
return songID;
}
public void setSongID(String songID) {
this.songID = songID;
}
2020-12-08 11:12:44 +01:00
public long getLastPlayed() {
return lastPlayed;
}
public void setLastPlayed(long lastPlayed) {
this.lastPlayed = lastPlayed;
}
2020-12-05 21:31:12 +01:00
}