1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2025-06-25 00:17:01 -04:00
This commit is contained in:
Ashley 2022-08-05 22:33:38 +03:00 committed by GitHub
parent d2874c2e5f
commit 63dab6176e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
100 changed files with 12438 additions and 0 deletions

View 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;
}
}
}