mirror of
https://codeberg.org/ashley/poke.git
synced 2025-06-10 10:03:01 -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/SubscriptionChannels.cs
Normal file
18
core/LightTube/Database/SubscriptionChannels.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using System.Xml;
|
||||
|
||||
namespace LightTube.Database
|
||||
{
|
||||
public class SubscriptionChannels
|
||||
{
|
||||
public LTChannel[] Channels { get; set; }
|
||||
|
||||
public XmlNode GetXmlDocument()
|
||||
{
|
||||
XmlDocument doc = new();
|
||||
XmlElement feed = doc.CreateElement("Subscriptions");
|
||||
foreach (LTChannel channel in Channels) feed.AppendChild(channel.GetXmlElement(doc));
|
||||
doc.AppendChild(feed);
|
||||
return doc;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue