Package com.treescrub.spedran.data
Class UserLocation
- java.lang.Object
-
- com.treescrub.spedran.data.UserLocation
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationInfogetCountry()Gets theLocationInfofor the country.Optional<LocationInfo>getRegion()Gets theLocationInfofor the region of the country.StringtoString()
-
-
-
Method Detail
-
getCountry
public LocationInfo getCountry()
Gets theLocationInfofor the country. The country code is ISO 3166-1 alpha-2.- Returns:
- a
LocationInfowith the country
-
getRegion
public Optional<LocationInfo> getRegion()
- Returns:
- an
Optionalwith the region location info
-
-