30 lines
1.0 KiB
C#
30 lines
1.0 KiB
C#
using JiShe.CollectBus.Protocol.Interfaces;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace JiShe.CollectBus.Protocol.T37612012.Appendix
|
|
{
|
|
/// <summary>
|
|
/// 第一套第 5 日时段表数据
|
|
/// </summary>
|
|
public class Appendix_04010005 : IAnalysisStrategy<List<string>>
|
|
{
|
|
private readonly ILogger<Appendix_04010005> _logger;
|
|
private readonly AnalysisStrategyContext _analysisStrategyContext;
|
|
|
|
public Appendix_04010005(ILogger<Appendix_04010005> 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_04010000), data, (values) =>
|
|
{
|
|
values[0] = "第一套第5日第{0}时段起始时间及费率号";
|
|
result?.Invoke(values);
|
|
});
|
|
}
|
|
}
|
|
}
|