mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Made attributes of model classes private
This commit is contained in:
parent
42731aef75
commit
00b85e5bc2
4 changed files with 30 additions and 30 deletions
|
|
@ -20,16 +20,16 @@ public class Album implements Parcelable {
|
||||||
public static final String RECENTLY_ADDED = "RECENTLY_ADDED";
|
public static final String RECENTLY_ADDED = "RECENTLY_ADDED";
|
||||||
public static final String STARRED = "STARRED";
|
public static final String STARRED = "STARRED";
|
||||||
|
|
||||||
public String id;
|
private String id;
|
||||||
public String title;
|
private String title;
|
||||||
public int year;
|
private int year;
|
||||||
public String artistId;
|
private String artistId;
|
||||||
public String artistName;
|
private String artistName;
|
||||||
public String primary;
|
private String primary;
|
||||||
public String blurHash;
|
private String blurHash;
|
||||||
public boolean favorite;
|
private boolean favorite;
|
||||||
public List<Song> songs;
|
private List<Song> songs;
|
||||||
public String notes;
|
private String notes;
|
||||||
|
|
||||||
public Album(AlbumID3 albumID3) {
|
public Album(AlbumID3 albumID3) {
|
||||||
this.id = albumID3.getId();
|
this.id = albumID3.getId();
|
||||||
|
|
|
||||||
|
|
@ -19,22 +19,22 @@ public class Artist implements Parcelable {
|
||||||
|
|
||||||
public static final String STARRED = "STARRED";
|
public static final String STARRED = "STARRED";
|
||||||
|
|
||||||
public List<Genre> genres;
|
private List<Genre> genres;
|
||||||
public List<Album> albums;
|
private List<Album> albums;
|
||||||
public List<Song> songs;
|
private List<Song> songs;
|
||||||
public List<Artist> similarArtists;
|
private List<Artist> similarArtists;
|
||||||
|
|
||||||
public String id;
|
private String id;
|
||||||
public String name;
|
private String name;
|
||||||
public String primary;
|
private String primary;
|
||||||
public String primaryBlurHash;
|
private String primaryBlurHash;
|
||||||
public String backdrop;
|
private String backdrop;
|
||||||
public String backdropBlurHash;
|
private String backdropBlurHash;
|
||||||
public int albumCount;
|
private int albumCount;
|
||||||
public boolean favorite;
|
private boolean favorite;
|
||||||
public String bio;
|
private String bio;
|
||||||
public String imageUrl;
|
private String imageUrl;
|
||||||
public String lastfm;
|
private String lastfm;
|
||||||
|
|
||||||
public Artist(ArtistID3 artistID3) {
|
public Artist(ArtistID3 artistID3) {
|
||||||
this.id = artistID3.getId();
|
this.id = artistID3.getId();
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,10 @@ import android.os.Parcelable;
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
public class Genre implements Parcelable {
|
public class Genre implements Parcelable {
|
||||||
public String id;
|
private String id;
|
||||||
public String name;
|
private String name;
|
||||||
public int songCount;
|
private int songCount;
|
||||||
public int albumCount;
|
private int albumCount;
|
||||||
|
|
||||||
public Genre(com.cappielloantonio.play.subsonic.models.Genre genre) {
|
public Genre(com.cappielloantonio.play.subsonic.models.Genre genre) {
|
||||||
this.id = genre.getGenre();
|
this.id = genre.getGenre();
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ public class ArtistPageViewModel extends AndroidViewModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
public LiveData<List<Album>> getAlbumList() {
|
public LiveData<List<Album>> getAlbumList() {
|
||||||
albumList = albumRepository.getArtistAlbums(artist.id);
|
albumList = albumRepository.getArtistAlbums(artist.getId());
|
||||||
return albumList;
|
return albumList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue