mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 02:13:33 +00:00
Added song/artist and album/artist synchronization
This commit is contained in:
parent
b577ce7e2e
commit
ef1deea33a
13 changed files with 476 additions and 20 deletions
|
|
@ -0,0 +1,61 @@
|
|||
package com.cappielloantonio.play.model;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.room.ColumnInfo;
|
||||
import androidx.room.Entity;
|
||||
import androidx.room.PrimaryKey;
|
||||
|
||||
@Entity(tableName = "album_artist_cross")
|
||||
public class AlbumArtistCross {
|
||||
@NonNull
|
||||
@PrimaryKey(autoGenerate = true)
|
||||
@ColumnInfo(name = "id")
|
||||
private int id;
|
||||
|
||||
@ColumnInfo(name = "album_id")
|
||||
private String albumId;
|
||||
|
||||
@ColumnInfo(name = "artist_id")
|
||||
private String artistId;
|
||||
|
||||
@ColumnInfo(name = "is_producer")
|
||||
private boolean isProducer;
|
||||
|
||||
public AlbumArtistCross(String albumId, String artistId, boolean isProducer) {
|
||||
this.albumId = albumId;
|
||||
this.artistId = artistId;
|
||||
this.isProducer = isProducer;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getAlbumId() {
|
||||
return albumId;
|
||||
}
|
||||
|
||||
public void setAlbumId(String albumId) {
|
||||
this.albumId = albumId;
|
||||
}
|
||||
|
||||
public String getArtistId() {
|
||||
return artistId;
|
||||
}
|
||||
|
||||
public void setArtistId(String artistId) {
|
||||
this.artistId = artistId;
|
||||
}
|
||||
|
||||
public boolean isProducer() {
|
||||
return isProducer;
|
||||
}
|
||||
|
||||
public void setProducer(boolean producer) {
|
||||
isProducer = producer;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue