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 STARRED = "STARRED";
|
||||
|
||||
public String id;
|
||||
public String title;
|
||||
public int year;
|
||||
public String artistId;
|
||||
public String artistName;
|
||||
public String primary;
|
||||
public String blurHash;
|
||||
public boolean favorite;
|
||||
public List<Song> songs;
|
||||
public String notes;
|
||||
private String id;
|
||||
private String title;
|
||||
private int year;
|
||||
private String artistId;
|
||||
private String artistName;
|
||||
private String primary;
|
||||
private String blurHash;
|
||||
private boolean favorite;
|
||||
private List<Song> songs;
|
||||
private String notes;
|
||||
|
||||
public Album(AlbumID3 albumID3) {
|
||||
this.id = albumID3.getId();
|
||||
|
|
|
|||
|
|
@ -19,22 +19,22 @@ public class Artist implements Parcelable {
|
|||
|
||||
public static final String STARRED = "STARRED";
|
||||
|
||||
public List<Genre> genres;
|
||||
public List<Album> albums;
|
||||
public List<Song> songs;
|
||||
public List<Artist> similarArtists;
|
||||
private List<Genre> genres;
|
||||
private List<Album> albums;
|
||||
private List<Song> songs;
|
||||
private List<Artist> similarArtists;
|
||||
|
||||
public String id;
|
||||
public String name;
|
||||
public String primary;
|
||||
public String primaryBlurHash;
|
||||
public String backdrop;
|
||||
public String backdropBlurHash;
|
||||
public int albumCount;
|
||||
public boolean favorite;
|
||||
public String bio;
|
||||
public String imageUrl;
|
||||
public String lastfm;
|
||||
private String id;
|
||||
private String name;
|
||||
private String primary;
|
||||
private String primaryBlurHash;
|
||||
private String backdrop;
|
||||
private String backdropBlurHash;
|
||||
private int albumCount;
|
||||
private boolean favorite;
|
||||
private String bio;
|
||||
private String imageUrl;
|
||||
private String lastfm;
|
||||
|
||||
public Artist(ArtistID3 artistID3) {
|
||||
this.id = artistID3.getId();
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ import android.os.Parcelable;
|
|||
import androidx.annotation.NonNull;
|
||||
|
||||
public class Genre implements Parcelable {
|
||||
public String id;
|
||||
public String name;
|
||||
public int songCount;
|
||||
public int albumCount;
|
||||
private String id;
|
||||
private String name;
|
||||
private int songCount;
|
||||
private int albumCount;
|
||||
|
||||
public Genre(com.cappielloantonio.play.subsonic.models.Genre genre) {
|
||||
this.id = genre.getGenre();
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public class ArtistPageViewModel extends AndroidViewModel {
|
|||
}
|
||||
|
||||
public LiveData<List<Album>> getAlbumList() {
|
||||
albumList = albumRepository.getArtistAlbums(artist.id);
|
||||
albumList = albumRepository.getArtistAlbums(artist.getId());
|
||||
return albumList;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue