2024-12-26 16:42:05 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Concurrent;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Serein.Library.Utils
|
|
|
|
|
|
{
|
2025-07-30 21:15:07 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 触发器结果类,用于存储触发器的类型和返回值。
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <typeparam name="TResult"></typeparam>
|
2024-12-26 16:42:05 +08:00
|
|
|
|
public class TriggerResult<TResult>
|
|
|
|
|
|
{
|
2025-07-30 21:15:07 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 触发类型
|
|
|
|
|
|
/// </summary>
|
2024-12-26 16:42:05 +08:00
|
|
|
|
public TriggerDescription Type { get; set; }
|
2025-07-30 21:15:07 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 触发结果值
|
|
|
|
|
|
/// </summary>
|
2024-12-26 16:42:05 +08:00
|
|
|
|
public TResult Value { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|