111
This commit is contained in:
@@ -94,4 +94,66 @@ public sealed class HealthDashboardOutput
|
||||
public SaveHealthProfileInput? Profile { get; set; }
|
||||
public List<string> SelectedModules { get; set; } = [];
|
||||
public HealthPlanOutput? CurrentPlan { get; set; }
|
||||
public bool HasCompletedAssessment { get; set; }
|
||||
public decimal? Bmi { get; set; }
|
||||
public string BmiStatus { get; set; } = string.Empty;
|
||||
public PersonalizedSceneConfig? SceneConfig { get; set; }
|
||||
}
|
||||
|
||||
public sealed class PersonalizedSceneConfig
|
||||
{
|
||||
public int TargetHumidity { get; set; } = 55;
|
||||
public string DehumidifierMode { get; set; } = "睡眠";
|
||||
public string FanLevel { get; set; } = "1档";
|
||||
public bool EnableUv { get; set; } = false;
|
||||
|
||||
public int LightBrightnessPercent { get; set; } = 20;
|
||||
public int LightColorTemperatureKelvin { get; set; } = 2700;
|
||||
|
||||
public decimal MattressTargetTemp { get; set; } = 36m;
|
||||
public int MattressLeftFirmness { get; set; } = 5;
|
||||
public int MattressRightFirmness { get; set; } = 6;
|
||||
public int MattressHeatingLevel { get; set; } = 1;
|
||||
public string MattressMode { get; set; } = "智能适配";
|
||||
|
||||
public bool EnableFragrance { get; set; } = true;
|
||||
public int FragranceLevel { get; set; } = 1;
|
||||
|
||||
public bool EnableSpeakerSleepMode { get; set; } = true;
|
||||
public string SpeakerAudioMode { get; set; } = "助眠白噪音";
|
||||
public int SpeakerVolumePercent { get; set; } = 15;
|
||||
}
|
||||
|
||||
public sealed class HealthAssessmentAnswers
|
||||
{
|
||||
public string SleepDuration { get; set; } = string.Empty;
|
||||
public string FallingAsleepSpeed { get; set; } = string.Empty;
|
||||
public string TemperaturePreference { get; set; } = string.Empty;
|
||||
public string NightAwakening { get; set; } = string.Empty;
|
||||
public string MattressPreference { get; set; } = string.Empty;
|
||||
|
||||
public string ExerciseFrequency { get; set; } = string.Empty;
|
||||
public string MuscleFatigueArea { get; set; } = string.Empty;
|
||||
public string ActiveTimeOfDay { get; set; } = string.Empty;
|
||||
|
||||
public string MealRegularity { get; set; } = string.Empty;
|
||||
public string FlavorPreference { get; set; } = string.Empty;
|
||||
public string LateNightEating { get; set; } = string.Empty;
|
||||
public string DailyWaterIntake { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public sealed class SaveHealthAssessmentInput
|
||||
{
|
||||
public SaveHealthProfileInput BasicInfo { get; set; } = new();
|
||||
public HealthAssessmentAnswers Answers { get; set; } = new();
|
||||
}
|
||||
|
||||
public sealed class HealthAssessmentOutput
|
||||
{
|
||||
public bool HasCompletedAssessment { get; set; }
|
||||
public SaveHealthProfileInput BasicInfo { get; set; } = new();
|
||||
public HealthAssessmentAnswers Answers { get; set; } = new();
|
||||
public PersonalizedSceneConfig SceneConfig { get; set; } = new();
|
||||
public decimal? Bmi { get; set; }
|
||||
public string BmiStatus { get; set; } = "正常";
|
||||
}
|
||||
|
||||
@@ -73,6 +73,15 @@ public sealed class HomeAssistantStatusOutput
|
||||
public HomeAssistantSceneDevicesSummaryOutput SceneDevices { get; set; } = new();
|
||||
public HomeAssistantEnvironmentOutput Environment { get; set; } = new();
|
||||
public List<HomeAssistantScenePresetItem> ScenePresets { get; set; } = [];
|
||||
public Dictionary<string, HomeAssistantParameterStateOutput> ControlParameters { get; set; } = [];
|
||||
}
|
||||
|
||||
public sealed class HomeAssistantParameterStateOutput
|
||||
{
|
||||
public string EntityId { get; set; } = string.Empty;
|
||||
public string State { get; set; } = string.Empty;
|
||||
public bool Available { get; set; }
|
||||
public Dictionary<string, object?>? Attributes { get; set; }
|
||||
}
|
||||
|
||||
public sealed class HomeAssistantScenePresetItem
|
||||
@@ -103,6 +112,22 @@ public sealed class HomeAssistantDeviceSwitchOutput
|
||||
public string Message { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public sealed class HomeAssistantSetParameterInput
|
||||
{
|
||||
public string DeviceId { get; set; } = string.Empty;
|
||||
public string? EntityId { get; set; }
|
||||
public string ParameterType { get; set; } = string.Empty;
|
||||
public object? Value { get; set; }
|
||||
}
|
||||
|
||||
public sealed class HomeAssistantSetParameterOutput
|
||||
{
|
||||
public bool Success { get; set; }
|
||||
public string DeviceId { get; set; } = string.Empty;
|
||||
public string ParameterType { get; set; } = string.Empty;
|
||||
public string Message { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public sealed class HomeAssistantSceneOutput
|
||||
{
|
||||
public string SceneCode { get; set; } = string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user