private void BuildDownloadResource()
{
var filePath = @"{0}_{1}" + @"\" + this.constants.CultureCode + @"\Activity_" + this.Activity.Id + ".json";
SavePath = this.constants.LocalContentPath + filePath;
switch (this.constants.ContentGenerateBy)
{
case LevelType.Level:
// activity, step, lesson, unit, level.
this.baseModelId = this.Activity.ParentModule.ParentModule.ParentModule.ParentModule.Id;
this.SavePath = string.Format(SavePath, "level", this.baseModelId);
break;
case LevelType.Unit:
this.baseModelId = this.Activity.ParentModule.ParentModule.ParentModule.ParentModule.Id;
this.SavePath = string.Format(SavePath, "unit", this.baseModelId);
break;
case LevelType.Lesson:
this.baseModelId = this.Activity.ParentModule.ParentModule.ParentModule.Id;
this.SavePath = string.Format(SavePath, "lesson", this.baseModelId);
break;
}
// Add download path to
MapfileItem f = new MapfileItem();
f.FileName = string.Format(filePath, "level", this.baseModelId); ;
// TODO:: To get SHA like value.
f.SHA = "1";
ResourceList.Add(f);
}