public AtomEntry(Uri id, AtomTextConstruct title, DateTime updated) : base(id, title, updated) { _content = null; _published = null; _source = null; _summary = null; }
public virtual void Save(XmlWriter writer) { Uri feedID = GenerateUniqueID(); AtomTextConstruct feedTitle = new AtomTextConstruct(string.Empty); DateTime feedUpdated = DateTime.Now; AtomFeed feed = new SettingsFeed(feedID, feedTitle, feedUpdated); AtomPersonConstruct feedAuthor = new AtomPersonConstruct(string.Empty); feed.AddAuthor(feedAuthor); foreach (SettingsItemInfo info in this) { Uri entryID = info.ID; AtomTextConstruct entryTitle = new AtomTextConstruct(info.Name); DateTime entryUpdated = feedUpdated; SettingsEntry entry = new SettingsEntry(entryID, entryTitle, entryUpdated); string valueString = ConvertToString(info.Value); AtomContent content = new AtomContent(valueString); entry.Content = content; entry.Type = info.Type; feed.Entries.Add(entry); } feed.WriteDocument(writer); }