com.what3words.javawrapper.request.AvailableLanguagesRequest 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.
package com.what3words.javawrapper.request;
import com.what3words.javawrapper.What3WordsV3;
import com.what3words.javawrapper.response.APIResponse;
import com.what3words.javawrapper.response.AvailableLanguages;
public class AvailableLanguagesRequest extends Request {
private AvailableLanguagesRequest(Builder builder) {
super(builder.api);
}
private AvailableLanguages execute() {
return super.execute(api.what3words().availableLanguages(), AvailableLanguages.class);
}
public static class Builder extends AbstractBuilder {
public Builder(What3WordsV3 api) {
super(api);
}
/**
* Execute the API call as represented by the values set within this {@link Builder}
*
* @return an {@link APIResponse} representing the response from the what3words API
*/
public AvailableLanguages execute() {
return new AvailableLanguagesRequest(this).execute();
}
}
}