|
|
|
@ -195,7 +195,7 @@ public class LINQ_XML_Serialization : IDataManager
|
|
|
|
|
new XAttribute("Name", p.Name),
|
|
|
|
|
new XElement("Description", p.Description),
|
|
|
|
|
new XElement("ImageURL", p.ImageURL),
|
|
|
|
|
new XElement("Titles", p.Morceaux.Count() > 0 ? p.Morceaux.Select(a => a.ImageURL).Aggregate((albumUrl, nextAlbum) => albumUrl + " " + nextAlbum) : "")
|
|
|
|
|
new XElement("Titles", p.Titles.Count() > 0 ? p.Titles.Select(a => a.ImageURL).Aggregate((albumUrl, nextAlbum) => albumUrl + " " + nextAlbum) : "")
|
|
|
|
|
));
|
|
|
|
|
|
|
|
|
|
PlaylistFile.Add(new XElement("Playlists", playlist));
|
|
|
|
@ -247,7 +247,7 @@ public class LINQ_XML_Serialization : IDataManager
|
|
|
|
|
new XAttribute("Name", playlist.Name),
|
|
|
|
|
new XElement("Description", playlist.Description),
|
|
|
|
|
new XElement("ImageURL", playlist.ImageURL),
|
|
|
|
|
new XElement("Titles", playlist.Morceaux.Count() > 0 ? playlist.Morceaux.Select(p => p.ImageURL).Aggregate((playlistUrl, nextPlaylist) => playlistUrl + " " + nextPlaylist) : "")
|
|
|
|
|
new XElement("Titles", playlist.Titles.Count() > 0 ? playlist.Titles.Select(p => p.ImageURL).Aggregate((playlistUrl, nextPlaylist) => playlistUrl + " " + nextPlaylist) : "")
|
|
|
|
|
));
|
|
|
|
|
PlaylistsFichier.Add(new XElement("Playlists", playlist));
|
|
|
|
|
|
|
|
|
|