diff options
Diffstat (limited to 'src/components/ble/SimpleWeatherService.h')
| -rw-r--r-- | src/components/ble/SimpleWeatherService.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/components/ble/SimpleWeatherService.h b/src/components/ble/SimpleWeatherService.h index 4d09d662..96933b85 100644 --- a/src/components/ble/SimpleWeatherService.h +++ b/src/components/ble/SimpleWeatherService.h @@ -113,13 +113,17 @@ namespace Pinetime { Temperature minTemperature, Temperature maxTemperature, Icons iconId, - Location&& location) + Location&& location, + int16_t sunrise, + int16_t sunset) : timestamp {timestamp}, temperature {temperature}, minTemperature {minTemperature}, maxTemperature {maxTemperature}, iconId {iconId}, - location {std::move(location)} { + location {std::move(location)}, + sunrise {sunrise}, + sunset {sunset} { } uint64_t timestamp; @@ -128,6 +132,8 @@ namespace Pinetime { Temperature maxTemperature; Icons iconId; Location location; + int16_t sunrise; + int16_t sunset; bool operator==(const CurrentWeather& other) const; }; @@ -152,6 +158,8 @@ namespace Pinetime { std::optional<CurrentWeather> Current() const; std::optional<Forecast> GetForecast() const; + [[nodiscard]] bool IsNight() const; + private: // 00050000-78fc-48fe-8e23-433b3a1942d0 static constexpr ble_uuid128_t BaseUuid() { |
