/// <summary> /// Initializes a new instance of the <see cref="RoundCI"/> class /// </summary> /// <param name="exportable">The <see cref="ExportableSeasonCI"/> used to create new instance</param> internal SeasonCI(ExportableSeasonCI exportable) { if (exportable == null) { throw new ArgumentNullException(nameof(exportable)); } Id = string.IsNullOrEmpty(exportable.SeasonId) ? null : URN.Parse(exportable.SeasonId); Names = new Dictionary <CultureInfo, string>(exportable.Names); StartDate = exportable.StartDate; EndDate = exportable.EndDate; Year = exportable.Year; TournamentId = string.IsNullOrEmpty(exportable.TournamentId) ? null : URN.Parse(exportable.TournamentId); }
/// <summary> /// Initializes a new instance of the <see cref="RoundCI"/> class /// </summary> /// <param name="exportable">The <see cref="ExportableSeasonCI"/> used to create new instance</param> internal SeasonCI(ExportableSeasonCI exportable) { if (exportable == null) { throw new ArgumentNullException(nameof(exportable)); } Id = exportable.Id; Names = new Dictionary <CultureInfo, string>(exportable.Names); StartDate = exportable.StartDate; EndDate = exportable.EndDate; Year = exportable.Year; TournamentId = exportable.TournamentId; }