com.what3words.javawrapper.response.ConvertTo3WA Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of w3w-java-wrapper Show documentation
Show all versions of w3w-java-wrapper Show documentation
Java library for what3words REST API.
The newest version!
package com.what3words.javawrapper.response;
import com.google.gson.GsonBuilder;
public class ConvertTo3WA extends Response {
private String country;
private Square square;
private String nearestPlace;
private Coordinates coordinates;
private String words;
private String language;
private String locale;
private String map;
public ConvertTo3WA() {
}
public ConvertTo3WA(String country, Square square, String nearestPlace, Coordinates coordinates, String words, String language, String map) {
this.country = country;
this.square = square;
this.nearestPlace = nearestPlace;
this.coordinates = coordinates;
this.words = words;
this.language = language;
this.map = map;
}
public ConvertTo3WA(String country, Square square, String nearestPlace, Coordinates coordinates, String words, String language, String locale, String map) {
this.country = country;
this.square = square;
this.nearestPlace = nearestPlace;
this.coordinates = coordinates;
this.words = words;
this.language = language;
this.locale = locale;
this.map = map;
}
public String getCountry() {
return country;
}
public Square getSquare() {
return square;
}
public String getNearestPlace() {
return nearestPlace;
}
public Coordinates getCoordinates() {
return coordinates;
}
public String getWords() {
return words;
}
public String getLanguage() {
return language;
}
public String getLocale() { return locale; }
public String getMap() {
return map;
}
public String toString() {
return new GsonBuilder().setPrettyPrinting().create().toJson(this);
}
}