private DeleteAllPreviewsPayload GetDeleteEventPlayload(VideoAssetInOut videoAsset)
        {
            var payload = new DeleteAllPreviewsPayload(CommentMode.Timeline);

            payload.ItemsToErase = videoAsset.PlayByPlayMarkers;
            return(payload);
        }
 private void DeleteAllPreviews(DeleteAllPreviewsPayload payload)
 {
     if (this.ShouldDeleteAllPreviews(payload))
     {
         this.RemoveAllPreviews();
     }
     else
     {
         this.RemoveSpecificPlayByPlayMarkers(payload.ItemsToErase);
     }
 }
Exemplo n.º 3
0
 protected override bool FilterDeleteAllPreviewsEvent(DeleteAllPreviewsPayload payload)
 {
     return(this.IsSourceTimeline(payload.Source));
 }
 private bool ShouldDeleteAllPreviews(DeleteAllPreviewsPayload payload)
 {
     return(payload.ItemsToErase == null || payload.ItemsToErase.Count() == 0);
 }
 protected abstract bool FilterDeleteAllPreviewsEvent(DeleteAllPreviewsPayload payload);