/// <summary> /// Initializes a new instance of the <see cref="VenueCI"/> class /// </summary> /// <param name="exportable">A <see cref="ExportableVenueCI"/> containing information about a venue</param> public VenueCI(ExportableVenueCI exportable) : base(exportable) { _names = new Dictionary <CultureInfo, string>(exportable.Name); _cityNames = new Dictionary <CultureInfo, string>(exportable.CityNames); _countryNames = new Dictionary <CultureInfo, string>(exportable.CountryNames); Capacity = exportable.Capacity; Coordinates = exportable.Coordinates; CountryCode = exportable.CountryCode; }
/// <summary> /// Initializes a new instance of the <see cref="VenueCI"/> class /// </summary> /// <param name="exportable">A <see cref="ExportableVenueCI"/> containing information about a venue</param> public VenueCI(ExportableVenueCI exportable) : base(exportable) { _names = new Dictionary <CultureInfo, string>(exportable.Name); _cityNames = new Dictionary <CultureInfo, string>(exportable.CityNames); _countryNames = new Dictionary <CultureInfo, string>(exportable.CountryNames); Capacity = exportable.Capacity; Coordinates = exportable.Coordinates; CountryCode = exportable.CountryCode; State = exportable.State; Course = exportable.Course?.Select(s => new HoleCI(s)); }