![JAR search and dependency download from the Maven repository](/logo.png)
com.sportdataapi.data.Country Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sportdata-api-client Show documentation
Show all versions of sportdata-api-client Show documentation
A simple sportdataapi.com client.
The newest version!
package com.sportdataapi.data;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Country object for Sportdataapi.com.
* @author ralph
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class Country {
private int id;
private String name;
private String countryCode;
private Continent continent;
/**
* Constructor.
*/
public Country() {
}
/**
* Returns the id.
* @return the id
*/
@JsonProperty("country_id")
public int getId() {
return id;
}
/**
* Sets the id.
* @param id - the id to set
*/
@JsonProperty("country_id")
public void setId(int id) {
this.id = id;
}
/**
* Returns the name.
* @return the name
*/
public String getName() {
return name;
}
/**
* Sets the name.
* @param name - the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* Returns the countryCode.
* @return the countryCode
*/
@JsonProperty("country_code")
public String getCountryCode() {
return countryCode;
}
/**
* Sets the countryCode.
* @param countryCode - the countryCode to set
*/
@JsonProperty("country_code")
public void setCountryCode(String countryCode) {
this.countryCode = countryCode;
}
/**
* Returns the continent.
* @return the continent
*/
public Continent getContinent() {
return continent;
}
/**
* Sets the continent.
* @param continent - the continent to set
*/
public void setContinent(Continent continent) {
this.continent = continent;
}
/**
* {@inheritDoc}
*/
@Override
public String toString() {
return "Country [id=" + id + ", name=" + name + ", countryCode=" + countryCode + ", continent=" + continent + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy