All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.what3words.javawrapper.response.ConvertTo3WA Maven / Gradle / Ivy

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy