30 lines
1016 B
C#
30 lines
1016 B
C#
using JiShe.CollectBus.Protocol.Interfaces;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace JiShe.CollectBus.Protocol.T37612012.Appendix
|
|
{
|
|
/// <summary>
|
|
/// 日时段表数 q≤8
|
|
/// </summary>
|
|
public class Appendix_04000202 : IAnalysisStrategy<List<string>>
|
|
{
|
|
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)
|
|
{
|
|
return await _analysisStrategyContext.ExecuteAsync<List<string>>(nameof(Appendix_04000201), data, (values) =>
|
|
{
|
|
values[0] = "日时段表数";
|
|
result?.Invoke(values);
|
|
});
|
|
}
|
|
}
|
|
}
|