Commit 0f9573b1 authored by Matija Obreza's avatar Matija Obreza
Browse files

Merge branch 'ui-427-iso-pages-aren-t-loaded-in-new-tab' into 'master'

Added full countries model to GeoRegionService.RegionDetails

See merge request genesys-pgr/genesys-server!436
parents 7d9f8a32 79a20b8a
......@@ -51,11 +51,13 @@ public interface GeoRegionService {
@JsonUnwrapped
public GeoRegion region;
public List<GeoRegion> subRegions;
public List<Country> countries;
public static RegionDetails from(GeoRegion region, List<GeoRegion> subRegions) {
RegionDetails regionDetails = new RegionDetails();
regionDetails.region = region;
regionDetails.subRegions = subRegions;
regionDetails.countries = region.getCountries();
return regionDetails;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment