Esempio n. 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public Match()
 {
     matchIdField   = 0;
     homeTeamField  = new HomeTeam();
     awayTeamField  = new AwayTeam();
     matchDateField = DateTime.MinValue;
     matchTypeField = MatchType.Unavailable;
     homeGoalsField = 0;
     awayGoalsField = 0;
 }
Esempio n. 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 public Match()
 {
     matchIdField = 0;
     homeTeamField = new HomeTeam();
     awayTeamField = new AwayTeam();
     matchDateField = DateTime.MinValue;
     matchTypeField = MatchType.Unavailable;
     homeGoalsField = 0;
     awayGoalsField = 0;
 }
        private AwayTeam ParseAwayTeamNode(XmlNode awayTeamNode)
        {
            try {
                AwayTeam awayTeam = new AwayTeam();

                foreach (XmlNode xmlNode in awayTeamNode.ChildNodes) {
                    switch (xmlNode.Name) {
                        case Tags.AwayTeamID:
                            awayTeam.awayTeamIdField = GenericFunctions.ConvertStringToUInt(xmlNode.InnerText);
                            break;
                        case Tags.AwayTeamName:
                            awayTeam.awayTeamNameField = xmlNode.InnerText;
                            break;
                    }
                }

                return awayTeam;
            } catch (Exception ex) {
                throw ex;
            }
        }