Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Entities/Event.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<long, Ticket> Tickets = new Dictionary<long, Ticket>();

private List<Attendee> attendees;
Expand Down
3 changes: 2 additions & 1 deletion Xml/EventBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down