コード例 #1
0
 public object DownloadVideo(Guid id)
 {
     if (DownloadExist(id) || _needRequest)
     {
         _service.DownloadVideo(id);
     }
     return(_cachedVideos.Any());
 }
コード例 #2
0
 public string DownloadVideo(string name)
 {
     _videoCache ??= new Dictionary <string, string>();
     if (!_videoCache.ContainsKey(name))
     {
         _videoCache[name] = _service.DownloadVideo(name);
     }
     return(_videoCache[name]);
 }
コード例 #3
0
 public Video DownloadVideo(int id)
 {
     return(_service.DownloadVideo(id));
 }