mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
44 lines
863 B
Java
44 lines
863 B
Java
package com.cappielloantonio.play.model;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.room.ColumnInfo;
|
|
import androidx.room.Entity;
|
|
import androidx.room.Ignore;
|
|
import androidx.room.PrimaryKey;
|
|
|
|
@Entity(tableName = "queue")
|
|
public class Queue {
|
|
@NonNull
|
|
@PrimaryKey(autoGenerate = true)
|
|
@ColumnInfo(name = "id")
|
|
private int id;
|
|
|
|
@ColumnInfo(name = "song_id")
|
|
private String songID;
|
|
|
|
public Queue(@NonNull int id, String songID) {
|
|
this.id = id;
|
|
this.songID = songID;
|
|
}
|
|
|
|
@Ignore
|
|
public Queue(String songID) {
|
|
this.songID = songID;
|
|
}
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(int id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getSongID() {
|
|
return songID;
|
|
}
|
|
|
|
public void setSongID(String songID) {
|
|
this.songID = songID;
|
|
}
|
|
}
|