public Like(XmlElement element) { Date = DateTime.Parse(Util.ChildValue(element, "date")); User = new User(Util.ChildElement(element, "user")); }
public Comment(XmlElement element) { Date = DateTime.Parse(Util.ChildValue(element, "date")); User = new User(Util.ChildElement(element, "user")); Body = Util.ChildValue(element, "body"); }
public Entry(XmlElement element) { Id = Util.ChildValue(element, "id"); Title = Util.ChildValue(element, "title"); Link = Util.ChildValue(element, "link"); Published = DateTime.Parse(Util.ChildValue(element, "published")); Updated = DateTime.Parse(Util.ChildValue(element, "updated")); User = new User(Util.ChildElement(element, "user")); Service = new Service(Util.ChildElement(element, "service")); Comments = new List<Comment>(); foreach (XmlElement child in element.GetElementsByTagName("comment")) { Comments.Add(new Comment(child)); } Likes = new List<Like>(); foreach (XmlElement child in element.GetElementsByTagName("like")) { Likes.Add(new Like(child)); } Media = new List<Media>(); foreach (XmlElement child in element.GetElementsByTagName("media")) { Media.Add(new Media(child)); } }