示例#1
0
        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);
        }