mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Added server info in download item saved in db
This commit is contained in:
parent
af60a4a3eb
commit
16d766a17d
1 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,9 @@ import androidx.room.ColumnInfo;
|
||||||
import androidx.room.Entity;
|
import androidx.room.Entity;
|
||||||
import androidx.room.PrimaryKey;
|
import androidx.room.PrimaryKey;
|
||||||
|
|
||||||
|
import com.cappielloantonio.play.App;
|
||||||
|
import com.cappielloantonio.play.util.PreferenceUtil;
|
||||||
|
|
||||||
@Entity(tableName = "download")
|
@Entity(tableName = "download")
|
||||||
public class Download {
|
public class Download {
|
||||||
@NonNull
|
@NonNull
|
||||||
|
|
@ -57,6 +60,7 @@ public class Download {
|
||||||
this.artistName = song.getArtistName();
|
this.artistName = song.getArtistName();
|
||||||
this.primary = song.getPrimary();
|
this.primary = song.getPrimary();
|
||||||
this.duration = song.getDuration();
|
this.duration = song.getDuration();
|
||||||
|
this.server = PreferenceUtil.getInstance(App.getInstance()).getServerId();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSongID() {
|
public String getSongID() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue