Commit 79a20b8a authored by Viacheslav Pavlov's avatar Viacheslav Pavlov
Browse files

Added full countries model to GeoRegionService.RegionDetails

parent 68d02346
......@@ -51,11 +51,13 @@ public interface GeoRegionService {
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;
Supports Markdown
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