43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
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; } // 1,2,3
|
||
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);
|
||
}
|
||
|
||
|