﻿/*
 * Sueca Tournament Manager - Simple Sueca tournament manager
 * Copyright (C) 2013  rtfpessoa
 *
 * Sueca Tournament Manager is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Sueca Tournament Manager is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Sueca Tournament Manager.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

using System;
using System.Collections.Generic;

namespace SuecaTournamentManager.Domain
{
    /// <summary>
    /// Description of Torneio.
    /// </summary>
    public class Tournament
    {
        public Tournament()
        {
            Associations = new List<Association>();
            Teams = new List<Team>();
            Phases = new List<Phase>();
            Matches = new List<Match>();
            Results = new List<Result>();
        }

        public virtual int Id { get; set; }
        public virtual string Name { get; set; }
        public virtual bool TournamentWithAssociations { get; set; }
        public virtual IList<Association> Associations { get; set; }
        public virtual IList<Team> Teams { get; set; }
        public virtual IList<Phase> Phases { get; set; }
        public virtual IList<Match> Matches { get; set; }
        public virtual IList<Result> Results { get; set; }

        public override string ToString()
        {
            return Name;
        }
    }
}
