public object DownloadVideo(Guid id) { if (DownloadExist(id) || _needRequest) { _service.DownloadVideo(id); } return(_cachedVideos.Any()); }
public string DownloadVideo(string name) { _videoCache ??= new Dictionary <string, string>(); if (!_videoCache.ContainsKey(name)) { _videoCache[name] = _service.DownloadVideo(name); } return(_videoCache[name]); }
public Video DownloadVideo(int id) { return(_service.DownloadVideo(id)); }