public static ParentDataWriter New(IAreasReader areasReader, IGroupDataReader groupDataReader, WorksheetInfo worksheetInfo, ProfileDataWriter profileDataWriter, IAreaType parentAreaType) { var categoryAreaType = parentAreaType as CategoryAreaType; return categoryAreaType != null ? (ParentDataWriter)new CategoryAreaDataWriter(areasReader, groupDataReader, worksheetInfo, profileDataWriter, categoryAreaType) : (ParentDataWriter)new SubnationalAreaDataWriter(areasReader, groupDataReader, worksheetInfo, profileDataWriter, parentAreaType); }
public ProfileDataBuilder(ComparatorMap comparatorMap, Profile profile, List<int> restrictSearchProfileIds, IList<ParentArea> parentAreas, IAreaType subnationalAreaType) { this._comparatorMap = comparatorMap; this._profile = profile; this._restrictSearchProfileIds = restrictSearchProfileIds; this._parentAreas = parentAreas; _profileDataWriter = new ProfileDataWriter(profile); _profileDataWriter.AddOrganisationDetails(profile.Id); _nationalArea = comparatorMap.GetNationalComparator().Area; this._subnationalAreaType = subnationalAreaType; }
public void addType(IAreaType t) { type = t; }
public Area(string name, IAreaType type) { this.name = name; this.type = type; }
public ProfileDataBuilder(ComparatorMap comparatorMap, Profile profile, List<int> restrictSearchProfileIds, IList<int> indicatorIds, IList<ParentArea> parentAreas, IAreaType subnationalAreaType) : this(comparatorMap, profile, restrictSearchProfileIds, parentAreas, subnationalAreaType) { this._indicatorIds = indicatorIds; }
public void addAreaType(IAreaType newLocation) { Areas.Add(newLocation); }