This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class WeatherConditions { | |
private Measurable<Temperature> temperature; | |
private Measurable<Temperature> feelsLikeTemperature; | |
private Measurable<Temperature> dewPoint; | |
private Measurable<Dimensionless> relativeHumidity; | |
private Measurable<Pressure> pressure; | |
private Measurable<Velocity> windSpeed; | |
private Measurable<Velocity> windGust; | |
private Measurable<Angle> windDirection; | |
private WeatherIcon icon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface WeatherService { | |
Observable<WeatherConditions> getConditions(Observable<WeatherRequest> requests); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class WeatherRequest { | |
private LocationType locationType; | |
private Float[] coordinates; | |
private String zipCode; | |
private String city; | |
private String state; | |
private String country; | |
private Locale locale; | |
public WeatherRequest forCoordinates(Float coordinateX, Float coordinateY) { |
NewerOlder