/// <summary> /// Extract its info from a geography. /// </summary> /// <param name="geog"></param> public NycResolution(NycGeography geog) { Name = geog.ResolutionName; UID = geog.Resolution; Order = geog.ResolutionOrder; HasBoroughData = StringHelper.IsNonBlank(geog.Borough); HasSubBoroughData = StringHelper.IsNonBlank(geog.SubBorough); Geographies.Add(new ThinNycGeography(geog)); }
/// <summary> /// When iterating over all the geographies, call this method and we'll update /// the hasxxxdata flags based on whether the geography has that data or not, and /// add a "thin" version of this geography to our collection. /// </summary> /// <param name="geog"></param> public void Add(NycGeography geog) { HasBoroughData = HasBoroughData && StringHelper.IsNonBlank(geog.Borough); HasSubBoroughData = HasSubBoroughData && StringHelper.IsNonBlank(geog.SubBorough); Geographies.Add(new ThinNycGeography(geog)); }