Base Entities
Weather-related functionalities are organized into distinct classes, each designed to encapsulate specific weather data. These include LocationForecast
, Conditions
, and Parameter
. This document provides a detailed explanation of each class and its purpose.
LocationForecast class
This class is responsible for retaining data such as the forecast update datetime, the geographic location and forecast data.
Property | Type | Description |
---|---|---|
updated | DateTime | Forecast update datetime (UTC) |
coord | Coordinates | Geographic location |
forecast | List<Conditions> | Forecast data |
![]() |
---|
Current Weather Forecast Explained |
Conditions class
This class is responsible with retaining weather conditions for a given timestamp.
Property | Type | Description |
---|---|---|
type | String | For possible values see add ref[PredefinedParameterTypeValues] |
stamp | DateTime | Datetime for condition (UTC) |
image | Uint8List | Image representation as Uint8List |
img | Img | The conditions image as Img |
description | String | Description translated according to the current SDK language |
daylight | Daylight | Daylight condition |
params | List<Parameter> | Parameter list |
PredefinedParameterTypeValues
This class contains the common values for [Parameter.type] and [Conditions.type].
Property | Description | Unit |
---|---|---|
airQuality | 'AirQuality' | - |
dewPoint | 'DewPoint' | °C |
feelsLike | 'FeelsLike' | °C |
humidity | 'Humidity' | % |
pressure | 'Pressure' | mb |
sunRise | 'Sunrise' | - |
sunSet | 'Sunset' | - |
temperature | 'Temperature' | °C |
uv | 'UV' | - |
visibility | 'Visibility' | km |
windDirection | 'WindDirection' | ° |
windSpeed | 'WindSpeed' | km/h |
temperatureLow | 'TemperatureLow' | °C |
temperatureHigh | 'TemperatureHigh' | °C |
Parameter class
Class responsible for containg weather parameter data.
Property | Type | Description |
---|---|---|
type | String | For possible values see add ref[PredefinedParameterTypeValues] |
value | double | Value |
name | String | Name translated according to the current SDK language |
unit | String | Unit |