コード例 #1
0
 /// <summary>
 /// Creates a new instance of DvrOperationLog.
 /// </summary>
 /// <param name="operationType">The operation that occurred.</param>
 /// <param name="position">The position of playback when the operation occured.</param>
 /// <param name="playbackRate">The playback rate of the DVR operation. If this operation is PlayrateChanged, this will be the new playback rate</param>
 /// <param name="isPaused">Indicates if playback is paused at the time of the operation.</param>
 /// <param name="previousPosition">The previous position (if applicable) immediately before the operation occurred.</param>
 public DvrOperationLog(DvrOperationType operationType, TimeSpan position, double playbackRate, bool isPaused, TimeSpan?previousPosition)
 {
     TimeStamp        = DateTimeOffset.Now;
     Type             = EventTypes.DvrOperation;
     OperationType    = operationType;
     Position         = position;
     PreviousPosition = previousPosition;
     PlaybackRate     = playbackRate;
     IsPaused         = isPaused;
     Id        = Guid.NewGuid();
     ExtraData = new Dictionary <string, object>();
 }
コード例 #2
0
 /// <summary>
 /// Creates a new instance of DvrOperationLog.
 /// </summary>
 /// <param name="operationType">The operation that occurred.</param>
 /// <param name="position">The position of playback when the operation occured.</param>
 /// <param name="playbackRate">The playback rate of the DVR operation. If this operation is PlayrateChanged, this will be the new playback rate</param>
 /// <param name="isPaused">Indicates if playback is paused at the time of the operation.</param>
 /// <param name="previousPosition">The previous position (if applicable) immediately before the operation occurred.</param>
 public DvrOperationLog(DvrOperationType operationType, TimeSpan position, double playbackRate, bool isPaused, TimeSpan? previousPosition)
 {
     TimeStamp = DateTimeOffset.Now;
     Type = EventTypes.DvrOperation;
     OperationType = operationType;
     Position = position;
     PreviousPosition = previousPosition;
     PlaybackRate = playbackRate;
     IsPaused = isPaused;
     Id = Guid.NewGuid();
     ExtraData = new Dictionary<string, object>();
 }