30 lines
1016 B
C#
Raw Normal View History

2025-04-27 09:16:37 +08:00
using JiShe.CollectBus.Protocol.Interfaces;
2025-04-24 19:31:28 +08:00
using Microsoft.Extensions.Logging;
2025-04-27 09:16:37 +08:00
namespace JiShe.CollectBus.Protocol.T37612012.Appendix
2025-04-24 19:31:28 +08:00
{
/// <summary>
/// 日时段表数 q≤8
/// </summary>
public class Appendix_04000202 : IAnalysisStrategy<List<string>>
2025-04-24 19:31:28 +08:00
{
private readonly ILogger<Appendix_04000202> _logger;
private readonly AnalysisStrategyContext _analysisStrategyContext;
public Appendix_04000202(ILogger<Appendix_04000202> logger, AnalysisStrategyContext analysisStrategyContext)
{
_logger = logger;
_analysisStrategyContext = analysisStrategyContext;
}
public async Task<bool> ExecuteAsync(List<string> data, Action<dynamic>? result = null)
2025-04-24 19:31:28 +08:00
{
return await _analysisStrategyContext.ExecuteAsync<List<string>>(nameof(Appendix_04000201), data, (values) =>
{
values[0] = "日时段表数";
result?.Invoke(values);
});
2025-04-24 19:31:28 +08:00
}
}
}