mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-15 08:38:19 +01:00
18 lines
397 B
C#
18 lines
397 B
C#
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|