Example #1
0
        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;
        }
Example #2
0
 public Record(Record record, decimal traffic, DateTime start, DateTime end)
     : this(record, traffic, start, end-start)
 {
 }
Example #3
0
 public Record(Record record)
     : this(record, record.Traffic, record.Start, record.Duration)
 {
 }