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();
}