mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
Added bio information in artist page
This commit is contained in:
parent
8243173e29
commit
522323073a
3 changed files with 60 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue