Files
petwash/PetWashControl/Services/ConfigurationService.cs

32 lines
1.6 KiB
C#
Raw Normal View History

2026-02-25 15:43:47 +08:00
namespace PetWashControl.Services;
public class ConfigurationService
{
2026-02-25 18:30:24 +08:00
public string ApiBaseUrl { get; set; } = "https://localhost:7203/";
2026-02-25 15:43:47 +08:00
public string MqttBrokerHost { get; set; } = "localhost";
public int MqttBrokerPort { get; set; } = 1883;
public string MqttClientId { get; set; } = "PetWashControl";
2026-02-27 11:20:42 +08:00
// Modbus TCP 配置
public string ModbusIpAddress { get; set; } = "192.168.1.10";
public int ModbusPort { get; set; } = 502;
public byte ModbusSlaveId { get; set; } = 1;
public int ModbusConnectTimeoutMs { get; set; } = 5000;
public int ModbusReadTimeoutMs { get; set; } = 3000;
2026-02-25 15:43:47 +08:00
public int PaymentCheckIntervalSeconds { get; set; } = 2;
public int WashSimulationSeconds { get; set; } = 10;
2026-02-27 09:38:42 +08:00
// 洗护流程时间参数(单位:分钟)
public int FirstSprayWaterTime { get; set; } = 2; // 首次喷水时间
public int AfterShampoo1SprayTime { get; set; } = 2; // 沐浴1后喷水时间
public int AfterShampoo2SprayTime { get; set; } = 2; // 沐浴2后喷水时间
public int AfterShampoo3SprayTime { get; set; } = 2; // 沐浴3后喷水时间
public int SprayShampoo1Time { get; set; } = 1; // 喷沐浴露1时间
public int SprayShampoo2Time { get; set; } = 1; // 喷沐浴露2时间
public int SprayShampoo3Time { get; set; } = 1; // 喷沐浴露3时间
public int ColdAirTime { get; set; } = 2; // 冷风机时间
public int HotAirTime { get; set; } = 5; // 热风机时间
2026-02-27 10:05:49 +08:00
public int UvSterilizationTime { get; set; } = 3; // 紫外线杀菌时间
2026-02-25 15:43:47 +08:00
}