Permalink
Browse files

Refactored Country entities

  • Loading branch information...
1 parent d07e55a commit 1177371aa8329be76d99c95dc27310e962f274f9 Fayder Florez committed Aug 29, 2016
View
@@ -16,8 +16,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <maven.compiler.source>1.6</maven.compiler.source>
- <maven.compiler.target>1.6</maven.compiler.target>
+ <maven.compiler.source>1.8</maven.compiler.source>
+ <maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
@@ -0,0 +1,198 @@
+package fayder.restcountries.domain;
+
+import fayder.restcountries.v1.domain.CountryTranslations;
+
+import java.util.List;
+
+public class BaseCountry {
+
+ private String name;
+
+ private List<String> topLevelDomain;
+
+ private String alpha2Code;
+
+ private String alpha3Code;
+
+ private List<String> callingCodes;
+
+ private String capital;
+
+ private List<String> altSpellings;
+
+ private String relevance;
+
+ private String region;
+
+ private String subregion;
+
+ private CountryTranslations translations;
+
+ private Integer population;
+
+ private List<Double> latlng;
+
+ private String demonym;
+
+ private Double area;
+
+ private Double gini;
+
+ private List<String> timezones;
+
+ private List<String> borders;
+
+ private String nativeName;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public List<String> getTopLevelDomain() {
+ return topLevelDomain;
+ }
+
+ public void setTopLevelDomain(List<String> topLevelDomain) {
+ this.topLevelDomain = topLevelDomain;
+ }
+
+ public String getAlpha2Code() {
+ return alpha2Code;
+ }
+
+ public void setAlpha2Code(String alpha2Code) {
+ this.alpha2Code = alpha2Code;
+ }
+
+ public String getAlpha3Code() {
+ return alpha3Code;
+ }
+
+ public void setAlpha3Code(String alpha3Code) {
+ this.alpha3Code = alpha3Code;
+ }
+
+ public List<String> getCallingCodes() {
+ return callingCodes;
+ }
+
+ public void setCallingCodes(List<String> callingCodes) {
+ this.callingCodes = callingCodes;
+ }
+
+ public String getCapital() {
+ return capital;
+ }
+
+ public void setCapital(String capital) {
+ this.capital = capital;
+ }
+
+ public List<String> getAltSpellings() {
+ return altSpellings;
+ }
+
+ public void setAltSpellings(List<String> altSpellings) {
+ this.altSpellings = altSpellings;
+ }
+
+ public String getRelevance() {
+ return relevance;
+ }
+
+ public void setRelevance(String relevance) {
+ this.relevance = relevance;
+ }
+
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(String region) {
+ this.region = region;
+ }
+
+ public String getSubregion() {
+ return subregion;
+ }
+
+ public void setSubregion(String subregion) {
+ this.subregion = subregion;
+ }
+
+ public CountryTranslations getTranslations() {
+ return translations;
+ }
+
+ public void setTranslations(CountryTranslations translations) {
+ this.translations = translations;
+ }
+
+ public Integer getPopulation() {
+ return population;
+ }
+
+ public void setPopulation(Integer population) {
+ this.population = population;
+ }
+
+ public List<Double> getLatlng() {
+ return latlng;
+ }
+
+ public void setLatlng(List<Double> latlng) {
+ this.latlng = latlng;
+ }
+
+ public String getDemonym() {
+ return demonym;
+ }
+
+ public void setDemonym(String demonym) {
+ this.demonym = demonym;
+ }
+
+ public Double getArea() {
+ return area;
+ }
+
+ public void setArea(Double area) {
+ this.area = area;
+ }
+
+ public Double getGini() {
+ return gini;
+ }
+
+ public void setGini(Double gini) {
+ this.gini = gini;
+ }
+
+ public List<String> getTimezones() {
+ return timezones;
+ }
+
+ public void setTimezones(List<String> timezones) {
+ this.timezones = timezones;
+ }
+
+ public List<String> getBorders() {
+ return borders;
+ }
+
+ public void setBorders(List<String> borders) {
+ this.borders = borders;
+ }
+
+ public String getNativeName() {
+ return nativeName;
+ }
+
+ public void setNativeName(String nativeName) {
+ this.nativeName = nativeName;
+ }
+}
Oops, something went wrong.

0 comments on commit 1177371

Please sign in to comment.