Beispiel #1
0
 public Artist(IArtist artist)
 {
     this.Name = artist.Name;
     this.Link = artist.CreateLink().ToString();
 }
Beispiel #2
0
        //public static async Task<Track> AsTask(this Track track)
        //{
        //    return await track;
        //}

        //public static async Task<Artist> AsTask(this Artist artist)
        //{
        //    return await artist;
        //}

        //public static async Task<Album> AsTask(this Album album)
        //{
        //    return await album;
        //}

        //public static async Task<Search> AsTask(this Search search)
        //{
        //    return await search;
        //}

        //public static async Task<AlbumBrowse> AsTask(this AlbumBrowse albumBrowse)
        //{
        //    return await albumBrowse;
        //}

        //public static async Task<ArtistBrowse> AsTask(this ArtistBrowse artistBrowse)
        //{
        //    return await artistBrowse;
        //}

        public static string GetLinkString(this IArtist artist)
        {
            return(RemovePrefix(artist.CreateLink().ToString()));
        }
Beispiel #3
0
        public static string ToLinkString(this IArtist artist)
        {
            ILink l = artist.CreateLink();

            return(l.ToTrimmedString());
        }
Beispiel #4
0
 public Artist(IArtist artist)
 {
     this.Name = artist.Name;
     this.Link = artist.CreateLink().ToString();
 }