WeatherService
A connected device for the Open Weather web service.
Add it to a protocol with addConnectedDevice to enable the ContextSamplingPackage.WEATHER measure. Managed at runtime by WeatherServiceManager.
- Inheritance
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
WeatherService.fromJson
WeatherService
Constants
DEFAULT_ROLE_NAME
The default role name for a weather service.
DEVICE_TYPE
The type of a weather service.
Properties
apiKey
getter/setter pair
API key for the Open Weather API.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
Methods
toJson
Return a JSON encoding of this object.