public Record(Record record, decimal traffic, DateTime start, TimeSpan duration) : this() { Precision = TimeSpan.Zero; // "mutable" stuff Traffic = traffic; Start = start; Duration = duration; // "immutable" stuff City = record.City; Node = record.Node; Intersection = record.Intersection; Channel = record.Channel; Status = record.Status; Error = record.Error; OriginalDuration = record.OriginalDuration; Precision = Precision; }
public Record(Record record, decimal traffic, DateTime start, DateTime end) : this(record, traffic, start, end-start) { }
public Record(Record record) : this(record, record.Traffic, record.Start, record.Duration) { }