io.userinfo.client.model.Info Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of userinfo-java Show documentation
Show all versions of userinfo-java Show documentation
Java API wrapper for userinfo.io
The newest version!
package io.userinfo.client.model;
import org.joda.time.DateTime;
/**
* This class represents an information on a user returned by the userinfo.io API.
*
* @author Vincent DURMONT [[email protected]]
*/
public class Info {
private DateTime requestDate;
private String ipAddress;
private Position position;
private Place continent;
private Place country;
private Place city;
public DateTime getRequestDate() {
return requestDate;
}
public void setRequestDate(DateTime requestDate) {
this.requestDate = requestDate;
}
public String getIpAddress() {
return ipAddress;
}
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
public Position getPosition() {
return position;
}
public void setPosition(Position position) {
this.position = position;
}
public Place getContinent() {
return continent;
}
public void setContinent(Place continent) {
this.continent = continent;
}
public Place getCountry() {
return country;
}
public void setCountry(Place country) {
this.country = country;
}
public Place getCity() {
return city;
}
public void setCity(Place city) {
this.city = city;
}
@Override public String toString() {
return "Info{" +
"requestDate=" + requestDate +
", ipAddress='" + ipAddress + '\'' +
", position=" + position +
", continent=" + continent +
", country=" + country +
", city=" + city +
'}';
}
}