public class UltravioletIndexRequester extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
authToken |
protected static String |
OPEN_WEATHER_API_URL |
protected static String |
OPEN_WEATHER_API_VERSION |
protected static String |
OPEN_WEATHER_BASE_URL |
| Modifier and Type | Method and Description |
|---|---|
UltravioletIndex |
getCurrentUVIndex() |
List<UltravioletIndex> |
getUVIndexByPeriod(Date from,
Date to) |
List<UltravioletIndex> |
getUVIndexForecast(int amountOfDays) |
UltravioletIndexRequester |
setCoordinates(Coordinates coordinates) |
UltravioletIndexRequester |
setCoordinates(float latitude,
float longitude) |
protected static final String OPEN_WEATHER_API_VERSION
protected static final String OPEN_WEATHER_BASE_URL
protected static final String OPEN_WEATHER_API_URL
protected String authToken
public UltravioletIndexRequester setCoordinates(Coordinates coordinates)
public UltravioletIndexRequester setCoordinates(float latitude, float longitude)
public UltravioletIndex getCurrentUVIndex()
public List<UltravioletIndex> getUVIndexForecast(int amountOfDays)
public List<UltravioletIndex> getUVIndexByPeriod(Date from, Date to)
Copyright © 2019. All rights reserved.