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