diff --git a/Entities/Event.cs b/Entities/Event.cs index d873a3b..eb57dbf 100755 --- a/Entities/Event.cs +++ b/Entities/Event.cs @@ -9,11 +9,13 @@ public class Event : EntityBase public long Id; public string Title; public string Description; + public string Url; public DateTime StartDateTime; public DateTime EndDateTime; public DateTime Created; public DateTime Modified; + public Dictionary Tickets = new Dictionary(); private List attendees; diff --git a/Xml/EventBuilder.cs b/Xml/EventBuilder.cs index d78c659..057e1ea 100755 --- a/Xml/EventBuilder.cs +++ b/Xml/EventBuilder.cs @@ -19,7 +19,8 @@ public Event Build(string xmlString) toReturn.Id = long.Parse(doc.GetElementsByTagName("id")[0].InnerText); toReturn.Title = doc.GetElementsByTagName("title")[0].InnerText; - toReturn.Description = doc.GetElementsByTagName("description")[0].InnerText; ; + toReturn.Description = doc.GetElementsByTagName("description")[0].InnerText; + toReturn.Url = doc.SelectSingleNode("/event/url").InnerText; toReturn.StartDateTime = DateTime.Parse(doc.GetElementsByTagName("start_date")[0].InnerText); toReturn.EndDateTime = DateTime.Parse(doc.GetElementsByTagName("end_date")[0].InnerText); toReturn.Created = DateTime.Parse(doc.GetElementsByTagName("created")[0].InnerText);