1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 08:14:38 -05:00
poke/core/LightTube/Database/SubscriptionChannels.cs

18 lines
397 B
C#
Raw Normal View History

2022-08-05 15:33:38 -04:00
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;
}
}
}