mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-29 20:38:10 +01:00
18 lines
No EOL
375 B
C#
18 lines
No EOL
375 B
C#
using System.Xml;
|
|
|
|
namespace LightTube.Database
|
|
{
|
|
public class SubscriptionFeed
|
|
{
|
|
public FeedVideo[] videos;
|
|
|
|
public XmlDocument GetXmlDocument()
|
|
{
|
|
XmlDocument doc = new();
|
|
XmlElement feed = doc.CreateElement("Feed");
|
|
foreach (FeedVideo feedVideo in videos) feed.AppendChild(feedVideo.GetXmlElement(doc));
|
|
doc.AppendChild(feed);
|
|
return doc;
|
|
}
|
|
}
|
|
} |