namespace Notify.Models; /// /// 一次弹窗请求(后续由 hook / named pipe 投递) /// public sealed class ToastRequest { public required string Title { get; init; } public required string Message { get; init; } /// /// true = 需要输入(黄色边框),false = 任务完成(橙色边框) /// public bool InputMode { get; init; } /// /// true = 常驻:不自动消失,只能点击 / ✕ 关闭 /// public bool Sticky { get; init; } /// /// 点击 toast 主体时要激活的窗口句柄,0 表示不激活 /// public long TargetHwnd { get; init; } /// /// 目标若为 Windows Terminal,激活后要切回的标签 RuntimeId /// public string? WtRuntimeId { get; init; } /// /// 调用方 App 的 exe 路径,用于显示其图标 /// public string? IconPath { get; init; } /// /// 覆盖停留秒数;为 null 时用设置里的默认值 /// public int? DurationSecondsOverride { get; init; } }