コード例 #1
0
 /// <summary>
 /// Return a link to album image or artist image of song
 /// </summary>
 /// <returns>The URL of image</returns>
 public string ImageUrl()
 => AlbumId.Equals(null) || AlbumId.Equals(string.Empty) ?
 "https://y.gtimg.cn/music/photo_new/T001R300x300M000" + ArtistId + ".jpg" :
 "https://y.gtimg.cn/music/photo_new/T002R300x300M000" + AlbumId + ".jpg";
コード例 #2
0
 bool IEquatable <Album> .Equals(Album other)
 {
     return(AlbumId.Equals(other.AlbumId));
 }