DCS/ruiyiweiUX/Assets/Scripts/Services/ISystemSettingsService.cs

43 lines
1.1 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
public enum NetworkMode
{
Dhcp,
Static
}
public struct NetworkConfig
{
public NetworkMode Mode;
public string IPv4;
public string Mask;
public string Gateway;
public string Dns1;
public string Dns2;
}
public interface ISystemSettingsService : IService
{
float Brightness { get; set; } // 10~100
int Volume { get; set; } // 10~100 (10 档)
int MuteDurationMinutes { get; set; } // 123
DateTime SystemTime { get; set; }
NetworkConfig Network { get; set; }
string VersionShort { get; }
string VersionFull { get; }
// 串口通信相关属性
string SerialPortName { get; set; }
int SerialBaudRate { get; set; }
bool EnableSerialCommunication { get; set; }
// BFI阈值设置
float BFILowThreshold { get; set; } // BFI低值阈值
float BFIHighThreshold { get; set; } // BFI高值阈值
int BFIAlarmPriority { get; set; } // BFI报警优先级 (0=低, 1=中, 2=高)
bool EnableBFIAlarm { get; set; } // 是否启用BFI报警
void SetBFIAlarmSettings(float lowThreshold, float highThreshold, int priority, bool enabled);
}