Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TournamentInfoBasicCI"/> class
        /// </summary>
        /// <param name="exportable">The exportable</param>
        public TournamentInfoBasicCI(ExportableTournamentInfoBasicCI exportable)
            : base(exportable)
        {
            Category = exportable.Category != null?URN.Parse(exportable.Category) : null;

            CurrentSeason = exportable.CurrentSeason != null
                ? new CurrentSeasonInfoCI(exportable.CurrentSeason)
                : null;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="TournamentInfoBasicCI"/> class
        /// </summary>
        /// <param name="exportable">The exportable</param>
        /// <param name="dataRouterManager">The <see cref="IDataRouterManager"/> used to fetch missing data</param>
        public TournamentInfoBasicCI(ExportableTournamentInfoBasicCI exportable, IDataRouterManager dataRouterManager)
            : base(exportable)
        {
            _dataRouterManager = dataRouterManager;

            Category = exportable.Category != null?URN.Parse(exportable.Category) : null;

            CurrentSeason = exportable.CurrentSeason != null
                ? new CurrentSeasonInfoCI(exportable.CurrentSeason, dataRouterManager)
                : null;
        }