Example #1
0
 internal void AddSummary(AtomTextConstruct summary)
 {
     _summary.Add(summary);
 }
Example #2
0
        private static void VisitTextConstruct(XmlReader reader,
                                               AtomEntryBase entry,
                                               String nodeName,
                                               Action<AtomTextConstruct, AtomEntryBase> action)
        {
            AtomTextConstructType t;
            var type = reader.GetAttribute("type");
            Enum.TryParse(type, true, out t);

            while (reader.Read())
            {
                if (reader.Name.Equals(nodeName) && reader.NodeType == XmlNodeType.EndElement)
                    break;

                if (reader.NodeType != XmlNodeType.Text)
                    continue;

                var construct = new AtomTextConstruct
                    {
                        Value = reader.Value,
                        Type = t
                    };
                action(construct, entry);
            }
        }
 internal void AddSubtitle(AtomTextConstruct subtitle)
 {
     _subtitles.Add(subtitle);
 }
 internal void AddTitle(AtomTextConstruct title)
 {
     _titles.Add(title);
 }
 internal void AddRights(AtomTextConstruct rights)
 {
     _rights.Add(rights);
 }