コード例 #1
0
ファイル: Xbmc.File.cs プロジェクト: vageesh79/FrontView
        public bool DownloadImages(ApiImageDownloadInfo apiImageDownloadInfo)
        {
            if (apiImageDownloadInfo == null)
            {
                return(false);
            }
            var res = Download(apiImageDownloadInfo.Source, apiImageDownloadInfo.Destination);

            if (res)
            {
                if (apiImageDownloadInfo.ToThumb)
                {
                    _parent.GenerateThumb(apiImageDownloadInfo.Destination, apiImageDownloadInfo.Destination, apiImageDownloadInfo.MaxHeight);
                }
            }
            return(res);
        }