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

com.what3words.javawrapper.request.AvailableLanguagesRequest Maven / Gradle / Ivy

There is a newer version: 3.1.21
Show newest version
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();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy