Пример #1
0
 public static AlbumInfo Create(SimpleAlbum album)
 {
     return(new AlbumInfo()
     {
         Id = album.Id,
         Name = album.Name,
         ReleaseDate = album.ReleaseDate,
         Artists = album.Artists.Select(a => ArtistInfoFactory.Create(a))
     });
 }
Пример #2
0
 public static TrackInfo Create(FullTrack item)
 {
     return(new TrackInfo()
     {
         Id = item.Id,
         Name = item.Name,
         Album = AlbumInfoFactory.Create(item.Album),
         Artists = item.Artists.Select(a => ArtistInfoFactory.Create(a))
     });
 }