// public LevelContentResourceDownloadManager(IDownloadService downloadService, IBaseModule module, IContentResourceServcie resourceService, IConstants constants) { this.downloadService = downloadService; this.levelContentResourceService = resourceService; this.constants = constants; this.Level = module as Level; var filePath = string.Format(@"level_{0}\{1}\Level_{2}.json", this.Level.Id, this.constants.CultureCode, this.Level.Id); this.savePath = this.constants.LocalContentPath + filePath; this.ResourceList = new List<MapfileItem>(); MapfileItem f = new MapfileItem(); f.FileName = filePath; this.ResourceList.Add(f); }
// public UnitContentResourceDownloadManager(IDownloadService downloadService, IBaseModule unit, IContentResourceServcie unitContentService, IConstants constants) { this.downloadService = downloadService; this.constants = constants; this.unitContentService = unitContentService; this.Unit = unit as Unit; var originalContent = unitContentService.Content; // Replace swf to jpg, flv to mp4 ContentHelper.ReplaceUrlFileFormat(ref originalContent); ContentHelper.ReplaceUrlToLocalResourcePath(ref originalContent); this.updatedContent = originalContent; this.ResourceList = new List <MapfileItem>(); this.BuildDownloadResource(); }
// public UnitContentResourceDownloadManager(IDownloadService downloadService, IBaseModule unit, IContentResourceServcie unitContentService, IConstants constants) { this.downloadService = downloadService; this.constants = constants; this.unitContentService = unitContentService; this.Unit = unit as Unit; var originalContent = unitContentService.Content; // Replace swf to jpg, flv to mp4 ContentHelper.ReplaceUrlFileFormat(ref originalContent); ContentHelper.ReplaceUrlToLocalResourcePath(ref originalContent); this.updatedContent = originalContent; this.ResourceList = new List<MapfileItem>(); this.BuildDownloadResource(); }
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); } }
// public LevelContentResourceDownloadManager(IDownloadService downloadService, IBaseModule module, IContentResourceServcie resourceService, IConstants constants) { this.downloadService = downloadService; this.levelContentResourceService = resourceService; this.constants = constants; this.Level = module as Level; var filePath = string.Format(@"level_{0}\{1}\Level_{2}.json", this.Level.Id, this.constants.CultureCode, this.Level.Id); this.savePath = this.constants.LocalContentPath + filePath; this.ResourceList = new List <MapfileItem>(); MapfileItem f = new MapfileItem(); f.FileName = filePath; this.ResourceList.Add(f); }
// 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(); }
// 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(); }
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); } }
public CourseStructureManager(IDownloadService ds, IContentResourceServcie resource, IConstants constants) { this.downloadService = ds; this.constants = constants; this.courseContentResourceService = resource; }
public CourseStructureManager(IDownloadService ds, IContentResourceServcie resource, IConstants constants) { this.downloadService = ds; this.constants = constants; this.courseContentResourceService = resource; }