public ViewershipSpan(Autopromotion autopromotion) { StartTime = autopromotion.StartTime; EndTime = autopromotion.EndTime; Span = autopromotion.Span; SpanUnits = autopromotion.SpanUnits; Viewers = 0.0d; }
private void AnalyzeAutopromotion(string line) { string[] fields = line.Split(' '); Autopromotion autopromotion = new Autopromotion() { Span = new TimeSpan(0, 0, Convert.ToInt32(fields[1])), StartTime = currentChannel.EndTime, }; autopromotion.EndTime = currentChannel.EndTime = currentChannel.EndTime.Add(autopromotion.Span); currentChannel.Autopromotions.Add(autopromotion); currentChannel.Activities.Add(autopromotion); }