mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-21 21:50:12 +08:00
27 lines
637 B
C#
27 lines
637 B
C#
using System.Threading;
|
|
using BetterGenshinImpact.GameTask.Model.Enum;
|
|
|
|
namespace BetterGenshinImpact.GameTask.Model;
|
|
|
|
/// <summary>
|
|
/// 独立任务参数基类
|
|
/// </summary>
|
|
public class TaskRunnerParam
|
|
{
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
public CancellationTokenSource Cts { get; set; }
|
|
|
|
/// <summary>
|
|
/// 针对实时触发器的操作
|
|
/// </summary>
|
|
public DispatcherTimerOperationEnum TriggerOperation { get; set; } = DispatcherTimerOperationEnum.None;
|
|
|
|
public bool UseLock { get; set; }
|
|
|
|
public TaskRunnerParam(CancellationTokenSource cts)
|
|
{
|
|
this.Cts = cts;
|
|
}
|
|
}
|