Ejemplo n.º 1
0
        private WebArtist CreateArtist(XboxArtist xboxArtist)
        {
            var artist = new WebArtist(GetType())
            {
                Name = xboxArtist.Name,
                Token = xboxArtist.Id
            };

            if (xboxArtist.ImageUrl == null)
                artist.IsPartial = true;
            else
                artist.Artwork = new Uri(xboxArtist.ImageUrl);

            return artist;
        }
Ejemplo n.º 2
0
 private WebAlbum CreateAlbum(string title, WebArtist artist, string artwork, List<WebSong> tracks = null)
 {
     return new WebAlbum(GetType())
     {
         Title = title,
         Artist = artist,
         Artwork = new Uri(artwork),
         Tracks = tracks
     };
 }