/// <summary> /// Constructor /// </summary> public Match() { matchIdField = 0; homeTeamField = new HomeTeam(); awayTeamField = new AwayTeam(); matchDateField = DateTime.MinValue; matchTypeField = MatchType.Unavailable; homeGoalsField = 0; awayGoalsField = 0; ordersGivenField = false; statusField = MatchStatus.Finished; }
private AwayTeam ParseAwayTeamNode(XmlNode awayTeamNode) { AwayTeam awayTeam = new AwayTeam(); foreach (XmlNode xmlNodeAwayTeam in awayTeamNode.ChildNodes) { switch (xmlNodeAwayTeam.Name) { case Tags.AwayTeamID: awayTeam.awayTeamIdField = GenericFunctions.ConvertStringToUInt(xmlNodeAwayTeam.InnerText); break; case Tags.AwayTeamName: awayTeam.awayTeamNameField = xmlNodeAwayTeam.InnerText; break; } } return awayTeam; }