Exemplo n.º 1
0
        public NicoVideoCacheProgress(DownloadOperation op, IVideoStreamingDownloadSession session, string videoId, NicoVideoQuality quality, DateTime requestAt)
        {
            DownloadOperation = op;
            Session           = session;
            VideoId           = videoId;
            Quality           = quality;
            RequestAt         = requestAt;

            _nicoVideo = Database.NicoVideoDb.Get(VideoId);
            SendUpdatableToastWithProgress();

            Progress = 0.0;
            _invertedProgressTotal = 1.0 / op.Progress.TotalBytesToReceive;
        }
Exemplo n.º 2
0
 public NicoVideoCacheProgress(NicoVideoCacheRequest req, DownloadOperation op, IVideoStreamingDownloadSession session)
 {
     RawVideoId           = req.RawVideoId;
     Quality              = session.Quality;
     IsRequireForceUpdate = req.IsRequireForceUpdate;
     RequestAt            = req.RequestAt;
     DownloadOperation    = op;
     Session              = session;
 }