mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-04 08:13:07 +00:00
Added server info in download item saved in db
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user