mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-21 16:14:28 +08:00
0.2.3
小白板,天气,时钟
This commit is contained in:
@@ -24,6 +24,20 @@ public sealed class AppSettingsSnapshot
|
||||
|
||||
public string? TimeZoneId { get; set; }
|
||||
|
||||
public string WeatherLocationMode { get; set; } = "CitySearch";
|
||||
|
||||
public string WeatherLocationKey { get; set; } = string.Empty;
|
||||
|
||||
public string WeatherLocationName { get; set; } = string.Empty;
|
||||
|
||||
public double WeatherLatitude { get; set; } = 39.9042;
|
||||
|
||||
public double WeatherLongitude { get; set; } = 116.4074;
|
||||
|
||||
public bool WeatherAutoRefreshLocation { get; set; }
|
||||
|
||||
public string WeatherLocationQuery { get; set; } = string.Empty;
|
||||
|
||||
public List<string> TopStatusComponentIds { get; set; } = [];
|
||||
|
||||
public List<string> PinnedTaskbarActions { get; set; } =
|
||||
|
||||
@@ -7,5 +7,6 @@ public enum TaskbarContext
|
||||
SettingsGrid,
|
||||
SettingsColor,
|
||||
SettingsStatusBar,
|
||||
SettingsWeather,
|
||||
SettingsRegion
|
||||
}
|
||||
|
||||
@@ -32,6 +32,12 @@ public sealed record WeatherDailyForecast(
|
||||
string? SunsetTime,
|
||||
int? PrecipitationProbabilityPercent);
|
||||
|
||||
public sealed record WeatherHourlyForecast(
|
||||
DateTimeOffset Time,
|
||||
double? TemperatureC,
|
||||
int? WeatherCode,
|
||||
string? WeatherText);
|
||||
|
||||
public sealed record WeatherSnapshot(
|
||||
string Provider,
|
||||
string LocationKey,
|
||||
@@ -41,5 +47,5 @@ public sealed record WeatherSnapshot(
|
||||
DateTimeOffset FetchedAt,
|
||||
DateTimeOffset? ObservationTime,
|
||||
WeatherCurrentCondition Current,
|
||||
IReadOnlyList<WeatherDailyForecast> DailyForecasts);
|
||||
|
||||
IReadOnlyList<WeatherDailyForecast> DailyForecasts,
|
||||
IReadOnlyList<WeatherHourlyForecast> HourlyForecasts);
|
||||
|
||||
Reference in New Issue
Block a user