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

ActivityContentResourceDownloadManager() public method

public ActivityContentResourceDownloadManager ( IDownloadService downloadService, IBaseModule activity, IContentResourceServcie resourceService, IConstants constants ) : System
downloadService IDownloadService
activity IBaseModule
resourceService IContentResourceServcie
constants IConstants
return System
        public ActivityContentResourceDownloadManager(IDownloadService downloadService, IBaseModule activity, IContentResourceServcie resourceService, IConstants constants)
        {
            this.downloadService = downloadService;
            this.constants = constants;
            this.activityContentResourceService = resourceService;

            ResourceList = new List<MapfileItem>();

            this.Activity = activity as Activity;

            string oriContent = activityContentResourceService.Content;

            // Replace swf to jpg, flv to mp4
            ContentHelper.ReplaceUrlFileFormat(ref oriContent);

            ContentHelper.ReplaceUrlToLocalResourcePath(ref oriContent);

            this.updatedContent = oriContent;

            BuildDownloadResource();
        }