namespace SJZY.Track.Domain.Dtos.Forewarning; public class RuleNotifyValue { public int RuleId { get; set; } public int OrderId { get; set; } /// /// 第几次通知 /// public int Count { get; set; } /// /// 结束轨迹状态 /// public int TrackEnd { get; set; } public RuleNotifyValue(int ruleId, int orderId, int count, int trackEnd) { RuleId = ruleId; OrderId = orderId; Count = count; TrackEnd = trackEnd; } public RuleNotifyValue(string notifyValue) { var values = notifyValue.Split(':'); RuleId = int.Parse(values[0]); OrderId = int.Parse(values[1]); Count = int.Parse(values[2]); TrackEnd = int.Parse(values[3]); } public override string ToString() { return $"{RuleId}:{OrderId}:{Count}:{TrackEnd}"; } }