mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
0.2.2
时钟组件的完善。
This commit is contained in:
45
LanMontainDesktop/Models/WeatherDataModels.cs
Normal file
45
LanMontainDesktop/Models/WeatherDataModels.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace LanMontainDesktop.Models;
|
||||
|
||||
public sealed record WeatherLocation(
|
||||
string Name,
|
||||
string LocationKey,
|
||||
double Latitude,
|
||||
double Longitude,
|
||||
string? Affiliation = null);
|
||||
|
||||
public sealed record WeatherCurrentCondition(
|
||||
double? TemperatureC,
|
||||
double? FeelsLikeC,
|
||||
int? RelativeHumidityPercent,
|
||||
int? AirQualityIndex,
|
||||
double? WindSpeedKph,
|
||||
double? WindDirectionDegree,
|
||||
int? WeatherCode,
|
||||
string? WeatherText);
|
||||
|
||||
public sealed record WeatherDailyForecast(
|
||||
DateOnly Date,
|
||||
double? LowTemperatureC,
|
||||
double? HighTemperatureC,
|
||||
int? DayWeatherCode,
|
||||
string? DayWeatherText,
|
||||
int? NightWeatherCode,
|
||||
string? NightWeatherText,
|
||||
string? SunriseTime,
|
||||
string? SunsetTime,
|
||||
int? PrecipitationProbabilityPercent);
|
||||
|
||||
public sealed record WeatherSnapshot(
|
||||
string Provider,
|
||||
string LocationKey,
|
||||
string? LocationName,
|
||||
double? Latitude,
|
||||
double? Longitude,
|
||||
DateTimeOffset FetchedAt,
|
||||
DateTimeOffset? ObservationTime,
|
||||
WeatherCurrentCondition Current,
|
||||
IReadOnlyList<WeatherDailyForecast> DailyForecasts);
|
||||
|
||||
Reference in New Issue
Block a user