using MessagePack; using System.Collections.Generic; namespace System.Application.Models { /// /// Steam++ 应用 用户配置项 /// [MessagePackObject(keyAsPropertyName: true)] public sealed class AppUserSettings { /// /// 启动参数 /// public string? StartupArgs { get; set; } /// /// 是否启用日志 /// public bool EnableLogger { get; set; } /// /// 用户设置的文本阅读器提供商,根据平台值不同,值格式为 枚举字符串 或 程序路径 /// public Dictionary? TextReaderProvider { get; set; } } #if DEBUG [Obsolete("use AppUserSettings", true)] public class SettingsModel { [Obsolete("use AppUserSettings.StartupArgs", true)] public string? SteamRunParam { get; set; } [Obsolete("use AppUserSettings.EnableTextLog", true)] public bool EnableTextLog { get; set; } } #endif }