-
Notifications
You must be signed in to change notification settings - Fork 0
/
Outline.cs
executable file
·31 lines (28 loc) · 973 Bytes
/
Outline.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
namespace Spaetzel.FeedDA
{
public class Outline
{
public string Text { get; set; }
public string Title { get; set; }
public string Type { get; set; }
public Uri XmlUrl { get; set; }
public Uri HtmlUrl { get; set; }
public List<Outline> Descendants { get; set; }
public XElement GetXElement()
{
XElement output = new XElement("outline",
new XAttribute("text", this.Text),
new XAttribute("title", Title),
new XAttribute("type", Type),
new XAttribute("xmlUrl", XmlUrl),
new XAttribute("htmlUrl", HtmlUrl)
);
return output;
}
}
}