19 using Newtonsoft.Json;
20 using System.Collections.Generic;
32 public DateTime
Date {
get;
set; }
70 return JsonConvert.SerializeObject(
this);
79 public static List<MappingContractFactorRow>
Parse(IEnumerable<string> lines, out DateTime? factorFileMinimumDate)
81 factorFileMinimumDate =
null;
83 var rows =
new List<MappingContractFactorRow>();
86 foreach (var line
in lines)
89 if(!row.DataMappingMode.HasValue || Enum.IsDefined(typeof(
DataMappingMode), row.DataMappingMode.Value))
97 factorFileMinimumDate = rows.Min(ffr => ffr.Date).AddDays(-1);