mirror of
https://codeberg.org/ashley/poke.git
synced 2025-06-18 04:27:02 -04:00
owo
This commit is contained in:
parent
f431111611
commit
72143fede3
100 changed files with 12438 additions and 0 deletions
18
core/LightTube/Database/SubscriptionFeed.cs
Normal file
18
core/LightTube/Database/SubscriptionFeed.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue