Biz.Managers.MediaResourceDownloadManager.MediaResourceDownloadManager C# (CSharp) Method

MediaResourceDownloadManager() public method

public MediaResourceDownloadManager ( IDownloadService downloadService, IBaseModule module, IContentResourceServcie activityContentResourceService, IConstants constants ) : System
downloadService IDownloadService
module IBaseModule
activityContentResourceService IContentResourceServcie
constants IConstants
return System
        public MediaResourceDownloadManager(IDownloadService downloadService, IBaseModule module, IContentResourceServcie activityContentResourceService, IConstants constants)
        {
            this.downloadService = downloadService;
            this.baseModule = module;
            this.constants = constants;
            this.activityContentResourceService = activityContentResourceService;

            string oriContent = this.activityContentResourceService.Content;
            mediaList = ContentHelper.GetMediaResources(ref oriContent);

            this.ResourceList = new List<MapfileItem>();

            // Build ResourceList for Mapfile.
            foreach (var m in mediaList)
            {
                MapfileItem f = new MapfileItem();
                f.FileName = m;
                ResourceList.Add(f);
            }
        }