/// <summary> /// Create a TaxonCountyOccurrence instance. /// </summary> /// <param name='taxon'>Taxon.</param> /// <param name='countyId'>County id.</param> /// <param name='countyOccurrence'>County occurrence.</param> /// <param name='hasSourceId'>Indicates if sourceId has a value.</param> /// <param name='sourceId'>Source id.</param> /// <param name='source'>Source.</param> /// <param name='hasArtDataId'>Indicates if artDataId has a value.</param> /// <param name='artDataId'>Art data id.</param> /// <param name='originalCountyOccurrence'>Original county occurrence.</param> public TaxonCountyOccurrence(Taxon taxon, Int32 countyId, String countyOccurrence, Boolean hasSourceId, Int32 sourceId, String source, Boolean hasArtDataId, Int32 artDataId, String originalCountyOccurrence) { _taxon = taxon; _county = GeographicManager.GetCounty(countyId); _countyOccurrence = countyOccurrence; _hasSourceId = hasSourceId; if (_hasSourceId) { _sourceId = sourceId; } else { _sourceId = DEFAULT_SOURCE_ID; } _source = source; _hasArtDataId = hasArtDataId; if (_hasArtDataId) { _artDataId = artDataId; } else { _artDataId = DEFAULT_ART_DATA_ID; } _originalCountyOccurrence = originalCountyOccurrence; }
/// <summary> /// Create a TaxonCountyOccurrence instance. /// </summary> /// <param name='taxon'>Taxon.</param> /// <param name='countyIdentifier'>County identifier.</param> /// <param name='countyOccurrence'>County occurrence.</param> /// <param name='originalCountyOccurrence'>Original county occurrence.</param> public TaxonCountyOccurrence(Taxon taxon, String countyIdentifier, String countyOccurrence, String originalCountyOccurrence) { _taxon = taxon; _county = GeographicManager.GetCounty(countyIdentifier); _countyOccurrence = countyOccurrence; _hasSourceId = false; _sourceId = DEFAULT_SOURCE_ID; _source = null; _hasArtDataId = false; _artDataId = DEFAULT_ART_DATA_ID; _originalCountyOccurrence = originalCountyOccurrence; }