public MeteoData<Weather> fetchContent(ForecastQuery query) throws MeteoException {
        MeteoResponse response = getMeteoClient().fetchContent(
                createServiceUriBuilder()
                        .addParameter("forecast", query.getName())
                        .addParameter("language", query.getLanguage().getValue())
                        .build());
        return new MeteoData<>(parser.parse(response.getData()), response);
    }
public MeteoData < Weather > fetchContent ( ForecastQuery query ) throws MeteoException { MeteoResponse response = getMeteoClient ( ) . fetchContent ( createServiceUriBuilder ( ) . addParameter ( "forecast" , query . getName ( ) ) . addParameter ( "language" , query . getLanguage ( ) . getValue ( ) ) . build ( ) ) ; return new MeteoData < > ( parser . parse ( response . getData ( ) ) , response ) ; }
Fetch a textforecast for a named forecast

@param query
One of the predefined available textforecasts.

@return A MeteoData object containing response information and textforecast converted into an Weather object.

@throws MeteoException
If a problem occurred while fetching or parsing the MET data.