/// <summary> /// The Ampache Song XML only provides an album and artist id, this operation /// hydrates the <see cref="AmpacheSong"/> with relevent album and artist information /// </summary> /// <param name="song"> /// A <see cref="AmpacheSong"/> /// </param> /// <param name="album"> /// A <see cref="AmpacheAlbum"/> /// </param> public static void Hydrate(this AmpacheSong song, AmpacheAlbum album, AmpacheArtist artist) { song.ArtistName = artist.Name; song.ArtistNameSort = artist.NameSort; song.AlbumTitle = album.Title; song.AlbumTitleSort = album.TitleSort; }
/// <summary> /// The Album XML returned from Ampache only containes the artist id, use this operation /// to hydrate a <see cref="AmpacheAlbum"/> with the artist's information /// </summary> /// <param name="album"> /// A <see cref="AmpacheAlbum"/> to hydrate /// </param> /// <param name="artist"> /// A <see cref="AmpacheArtist"/> the artist of the the album /// </param> public static void Hydrate(this AmpacheAlbum album, AmpacheArtist artist) { album.ArtistName = artist.Name; album.ArtistNameSort = artist.NameSort; }