internal VideoCacheDownloadOperation(VideoCacheManager videoCacheManager, VideoCacheItem videoCacheItem, DmcVideoStreamingSession dmcVideoStreamingSession, IVideoCacheDownloadOperationOutput videoCacheDownloadOperationOutput)
 {
     _videoCacheManager                 = videoCacheManager;
     VideoCacheItem                     = videoCacheItem;
     _dmcVideoStreamingSession          = dmcVideoStreamingSession;
     _videoCacheDownloadOperationOutput = videoCacheDownloadOperationOutput;
 }
예제 #2
0
 internal VideoCacheItem(
     VideoCacheManager videoCacheManager,
     string videoId,
     string fileName,
     string title,
     NicoVideoQuality requestedQuality,
     NicoVideoQuality downloadedQuality,
     VideoCacheStatus status,
     VideoCacheDownloadOperationFailedReason failedReason,
     DateTime requestAt,
     long?totalBytes,
     long?progressBytes,
     int sortIndex
     )
 {
     _videoCacheManager = videoCacheManager;
     VideoId            = videoId;
     FileName           = fileName;
     Title = title;
     RequestedVideoQuality  = requestedQuality;
     DownloadedVideoQuality = downloadedQuality;
     Status        = status;
     FailedReason  = failedReason;
     TotalBytes    = totalBytes;
     ProgressBytes = progressBytes;
     RequestedAt   = requestAt;
     SortIndex     = sortIndex;
 }