Added bio information in artist page

This commit is contained in:
CappielloAntonio 2021-08-11 13:05:28 +02:00
parent 8243173e29
commit 522323073a
3 changed files with 60 additions and 7 deletions

View file

@ -33,6 +33,7 @@ public class Artist implements Parcelable {
public int albumCount;
public boolean favorite;
public String bio;
public String imageUrl;
public Artist(ArtistID3 artistID3) {
this.id = artistID3.getId();
@ -65,6 +66,7 @@ public class Artist implements Parcelable {
public Artist(ArtistInfo2 artistInfo2) {
this.similarArtists = MappingUtil.mapSimilarArtist(artistInfo2.getSimilarArtists());
this.bio = artistInfo2.getBiography();
this.imageUrl = artistInfo2.getLargeImageUrl();
}
public Artist(String id, String name) {
@ -144,7 +146,6 @@ public class Artist implements Parcelable {
this.favorite = favorite;
}
public List<Artist> getSimilarArtists() {
return similarArtists;
}
@ -161,6 +162,14 @@ public class Artist implements Parcelable {
this.bio = bio;
}
public String getImageUrl() {
return imageUrl;
}
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;